impress/db/migrate/20130121221226_create_zones.rb

15 lines
316 B
Ruby
Raw Permalink Normal View History

class CreateZones < ActiveRecord::Migration[4.2]
2013-01-21 17:34:39 -08:00
def self.up
create_table :zones do |t|
t.integer :depth
t.integer :type_id
end
Zone.create_translation_table! :label => :string, :plain_label => :string
end
def self.down
drop_table :zones
Zone.drop_translation_table!
end
end