Class: CassandraSchema::Migration

Inherits:
Object
  • Object
show all
Defined in:
lib/cassandra-schema/migration.rb

Instance Method Summary collapse

Instance Method Details

#commandsObject



42
43
44
45
46
47
# File 'lib/cassandra-schema/migration.rb', line 42

def commands
  @commands ||= {
    up:   [],
    down: [],
  }
end

#set_commands(key, _commands) ⇒ Object



49
50
51
# File 'lib/cassandra-schema/migration.rb', line 49

def set_commands(key, _commands)
  commands[key] = _commands
end