class CreateCommandTable

Public Instance Methods

down() click to toggle source
# File lib/generators/orientea/command/templates/create_command.rb, line 11
def down
  drop_table :orientea_commands
end
up() click to toggle source
# File lib/generators/orientea/command/templates/create_command.rb, line 2
def up
  execute "CREATE EXTENSION IF NOT EXISTS hstore"
  create_table :orientea_commands do |t|
    t.hstore :data
    t.boolean :done
    t.string :type
  end
end