DeployKey moved to Key model

This commit is contained in:
miks 2011-12-31 16:24:10 +02:00
parent 5b4382e12e
commit 99b8b577e9
8 changed files with 35 additions and 93 deletions

View file

@ -1,12 +0,0 @@
class CreateDeployKeys < ActiveRecord::Migration
def change
create_table :deploy_keys do |t|
t.integer "project_id", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.text "key"
t.string "title"
t.string "identifier"
end
end
end

View file

@ -0,0 +1,6 @@
class AddProjectIdToKey < ActiveRecord::Migration
def change
add_column :keys, :project_id, :integer, :null => true
change_column :keys, :user_id, :integer, :null => true
end
end

View file

@ -11,16 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20111225202855) do
create_table "deploy_keys", :force => true do |t|
t.integer "project_id", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.text "key"
t.string "title"
t.string "identifier"
end
ActiveRecord::Schema.define(:version => 20111231111825) do
create_table "issues", :force => true do |t|
t.string "title"
@ -36,12 +27,13 @@ ActiveRecord::Schema.define(:version => 20111225202855) do
end
create_table "keys", :force => true do |t|
t.integer "user_id", :null => false
t.integer "user_id"
t.datetime "created_at"
t.datetime "updated_at"
t.text "key"
t.string "title"
t.string "identifier"
t.integer "project_id"
end
create_table "merge_requests", :force => true do |t|