Class: SchemaMigration

Inherits:
Object show all
Defined in:
lib/schema_migration.rb

Overview

Placeholder class to imitate a model for the schema migrations column family. Used as part of the CQL generation.

Class Method Summary collapse

Class Method Details

.column_familyObject

Returns the name of the column family



9
10
11
# File 'lib/schema_migration.rb', line 9

def self.column_family
  'schema_migrations'
end

.default_consistencyObject



4
5
6
# File 'lib/schema_migration.rb', line 4

def self.default_consistency
  DatastaxRails::Base.default_consistency
end

.primary_keyObject



13
14
15
# File 'lib/schema_migration.rb', line 13

def self.primary_key
  'cf'
end