forked from OpenNeo/impress
14 lines
311 B
Ruby
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
|