Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-06 16:10:05 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-06 16:10:05 +0400
commit8e4625af614b58df97d60031c2b5c72f37f1a692 (patch)
tree98ea623cfccc5c159013d26388ba551981ab16f9 /db/migrate/20130506095501_remove_project_id_from_key.rb
parentb7f1cf9f491f6cefdfc5f651f724331f07cfd6f5 (diff)
Remove project_id from keys table
Diffstat (limited to 'db/migrate/20130506095501_remove_project_id_from_key.rb')
-rw-r--r--db/migrate/20130506095501_remove_project_id_from_key.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130506095501_remove_project_id_from_key.rb b/db/migrate/20130506095501_remove_project_id_from_key.rb
new file mode 100644
index 00000000000..77daf5f19ba
--- /dev/null
+++ b/db/migrate/20130506095501_remove_project_id_from_key.rb
@@ -0,0 +1,9 @@
+class RemoveProjectIdFromKey < ActiveRecord::Migration
+ def up
+ remove_column :keys, :project_id
+ end
+
+ def down
+ add_column :keys, :project_id, :integer
+ end
+end