impress/db/migrate/20130121221226_create_zones.rb

15 lines
311 B
Ruby
Raw Normal View History

2013-01-21 17:34:39 -08:00
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