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