Class: CassandraStore::SchemaMigration
- Defined in:
- lib/cassandra_store/schema_migration.rb
Class Method Summary collapse
Methods inherited from Base
#==, #assign, #attributes, cast_value, cluster_execute, clustering_key_columns, column, configure, create, create!, create_keyspace, #delete, #destroy, #destroyed!, #destroyed?, drop_keyspace, #eql?, execute, execute_batch, #hash, #initialize, key_columns, #key_values, #new_record?, partition_key_columns, #persisted!, #persisted?, quote_column_name, quote_keyspace_name, quote_string, quote_table_name, quote_value, #read_raw_attribute, relation, #save, #save!, statement, truncate_table, #update, #update!, #valid?, #validate!, #write_raw_attribute
Constructor Details
This class inherits a constructor from CassandraStore::Base
Class Method Details
.create_table(if_not_exists: false) ⇒ Object
6 7 8 |
# File 'lib/cassandra_store/schema_migration.rb', line 6 def self.create_table(if_not_exists: false) execute "CREATE TABLE #{"IF NOT EXISTS" if if_not_exists} schema_migrations(version TEXT PRIMARY KEY)" end |
.table_name ⇒ Object
2 3 4 |
# File 'lib/cassandra_store/schema_migration.rb', line 2 def self.table_name "schema_migrations" end |