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, #cast, #clear_errors, count, create, #destroy, destroy_all, #errors, #initialize, #persisted?, primary_key, query, #save, table, unique, #unique?, #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