2012-03-31 00:37:54 +01:00
|
|
|
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
|
2014-03-14 17:41:49 +00:00
|
|
|
t.integer "owner_id", null: false, references: nil
|
2012-03-31 00:37:54 +01:00
|
|
|
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
|
2012-03-31 00:37:54 +01:00
|
|
|
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"
|
2012-03-31 00:37:54 +01:00
|
|
|
end
|
|
|
|
end
|