rosa-build/db/migrate/20120330201229_remove_conta...

27 lines
769 B
Ruby
Raw Normal View History

class RemoveContainersAndRpms < ActiveRecord::Migration
def up
drop_table :containers
drop_table :rpms
end
def down
create_table "containers" do |t|
2014-01-21 04:51:49 +00:00
t.string "name", null: false
t.integer "project_id", null: false
t.integer "owner_id", null: false
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "rpms" do |t|
2014-01-21 04:51:49 +00:00
t.string "name", null: false
t.integer "arch_id", null: false
t.integer "project_id", null: false
t.datetime "created_at"
t.datetime "updated_at"
end
2014-01-21 04:51:49 +00:00
add_index "rpms", ["project_id", "arch_id"], name: "index_rpms_on_project_id_and_arch_id"
add_index "rpms", ["project_id"], name: "index_rpms_on_project_id"
end
end