Commit 8e4625af614b58df97d60031c2b5c72f37f1a692

Authored by Dmitriy Zaporozhets
1 parent b7f1cf9f

Remove project_id from keys table

db/migrate/20130506095501_remove_project_id_from_key.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +class RemoveProjectIdFromKey < ActiveRecord::Migration
  2 + def up
  3 + remove_column :keys, :project_id
  4 + end
  5 +
  6 + def down
  7 + add_column :keys, :project_id, :integer
  8 + end
  9 +end
... ...
db/schema.rb
... ... @@ -11,7 +11,7 @@
11 11 #
12 12 # It's strongly recommended to check this file into your version control system.
13 13  
14   -ActiveRecord::Schema.define(:version => 20130506090604) do
  14 +ActiveRecord::Schema.define(:version => 20130506095501) do
15 15  
16 16 create_table "deploy_keys_projects", :force => true do |t|
17 17 t.integer "deploy_key_id", :null => false
... ... @@ -76,12 +76,10 @@ ActiveRecord::Schema.define(:version =&gt; 20130506090604) do
76 76 t.text "key"
77 77 t.string "title"
78 78 t.string "identifier"
79   - t.integer "project_id"
80 79 t.string "type"
81 80 end
82 81  
83 82 add_index "keys", ["identifier"], :name => "index_keys_on_identifier"
84   - add_index "keys", ["project_id"], :name => "index_keys_on_project_id"
85 83 add_index "keys", ["user_id"], :name => "index_keys_on_user_id"
86 84  
87 85 create_table "merge_requests", :force => true do |t|
... ...