rosa-build/db/migrate/20110408123808_create_build...

22 lines
417 B
Ruby
Raw Permalink Normal View History

2011-04-11 11:47:57 +01:00
class CreateBuildListItems < ActiveRecord::Migration
def self.up
2014-01-21 04:51:49 +00:00
create_table :build_list_items, force: true do |t|
2011-04-11 11:47:57 +01:00
t.string :name
t.integer :level
t.integer :status
t.integer :build_list_id
t.timestamps
end
add_index :build_list_items, :build_list_id
end
def self.down
remove_index :build_list_items, :build_list_id
drop_table :build_list_items
end
end