Class: Cassandro::Migrator::CassandroMigration

Inherits:
Cassandro::Model show all
Defined in:
lib/cassandro/ext/migrator.rb

Instance Attribute Summary

Attributes inherited from Cassandro::Model

#attributes

Class Method Summary collapse

Methods inherited from Cassandro::Model

[], all, attribute, attributes, #cast, cast_as, casts, #clear_errors, count, create, create_with_ttl, #destroy, destroy_all, #errors, #initialize, options, parse_row, partition_key, #persisted?, pk, primary_key, query, #save, table, table_name, table_name=, ttl, unique, #unique?, uniqueness_defined?, uniques, #update_attributes, #valid?, where

Constructor Details

This class inherits a constructor from Cassandro::Model

Class Method Details

.schemaObject



63
64
65
66
67
68
69
70
71
# File 'lib/cassandro/ext/migrator.rb', line 63

def self.schema
  <<-TABLEDEF
    CREATE TABLE IF NOT EXISTS cassandro_migrations (
      name VARCHAR,
      value VARCHAR,
      PRIMARY KEY (name)
    )
  TABLEDEF
end