DeployKey moved to Key model
This commit is contained in:
parent
5b4382e12e
commit
99b8b577e9
8 changed files with 35 additions and 93 deletions
|
@ -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
|
6
db/migrate/20111231111825_add_project_id_to_key.rb
Normal file
6
db/migrate/20111231111825_add_project_id_to_key.rb
Normal 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
|
14
db/schema.rb
14
db/schema.rb
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue