impress/db/migrate/20130121193957_create_species.rb

12 lines
239 B
Ruby
Raw Permalink Normal View History

class CreateSpecies < ActiveRecord::Migration[4.2]
2013-01-21 12:55:48 -08:00
def self.up
create_table :species
Species.create_translation_table! :name => :string
end
def self.down
drop_table :species
Species.drop_translation_table!
end
end