class Cassie::Schema::CreateVersionsTableQuery

Public Instance Methods

keyspace() click to toggle source
# File lib/cassie/schema/queries/create_versions_table_query.rb, line 20
def keyspace
  Cassie::Schema.schema_keyspace
end
statement() click to toggle source
# File lib/cassie/schema/queries/create_versions_table_query.rb, line 5
def statement
  %(
     CREATE TABLE IF NOT EXISTS #{Cassie::Schema.versions_table} (
       application text,
       env text,
       id timeuuid,
       number text,
       description text,
       executor text,
       executed_at timestamp,
       PRIMARY KEY ((application, env), id)
     ) WITH CLUSTERING ORDER BY (id DESC);
    )
end