1
0
Fork 0
forked from OpenNeo/impress
impress/db/migrate/20130121221226_create_zones.rb
2013-01-24 18:26:00 -06:00

14 lines
311 B
Ruby

class CreateZones < ActiveRecord::Migration
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