diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-06 12:27:54 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-06 12:27:54 +0300 |
commit | a735ce2aa7da72242629a4452c33e7a1900fdd62 (patch) | |
tree | 6d4c8db368a72b82873396979d59a16280bf2645 /db/migrate | |
parent | 543d86f351780ebfd9bdd945e6cc247da4919602 (diff) | |
download | gitlab-ce-a735ce2aa7da72242629a4452c33e7a1900fdd62.tar.gz |
migrations for ssh key STI and deploy keys <-> projects relation
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20130506085413_add_type_to_key.rb | 5 | ||||
-rw-r--r-- | db/migrate/20130506090604_create_deploy_keys_projects.rb | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20130506085413_add_type_to_key.rb b/db/migrate/20130506085413_add_type_to_key.rb new file mode 100644 index 00000000000..315e7ca77b3 --- /dev/null +++ b/db/migrate/20130506085413_add_type_to_key.rb @@ -0,0 +1,5 @@ +class AddTypeToKey < ActiveRecord::Migration + def change + add_column :keys, :type, :string + end +end diff --git a/db/migrate/20130506090604_create_deploy_keys_projects.rb b/db/migrate/20130506090604_create_deploy_keys_projects.rb new file mode 100644 index 00000000000..0dc8cdeb07d --- /dev/null +++ b/db/migrate/20130506090604_create_deploy_keys_projects.rb @@ -0,0 +1,10 @@ +class CreateDeployKeysProjects < ActiveRecord::Migration + def change + create_table :deploy_keys_projects do |t| + t.integer :deploy_key_id, null: false + t.integer :project_id, null: false + + t.timestamps + end + end +end |