summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-25 15:35:09 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-25 15:35:09 +0200
commit6d8963e33657b80821900a60f66d0a51416dc59a (patch)
tree1a9317c7416a3d98108482e61e503b993125c4e7 /db
parent7ea9c5ce9a5b2b5d80ab423ec6c2318c1cc3d96f (diff)
downloadgitlab-ce-6d8963e33657b80821900a60f66d0a51416dc59a.tar.gz
Add PoC of ActiveRecord migration testing
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170525132202_migrate_pipeline_stages.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20170525132202_migrate_pipeline_stages.rb b/db/migrate/20170525132202_migrate_pipeline_stages.rb
new file mode 100644
index 00000000000..8f7da8662ec
--- /dev/null
+++ b/db/migrate/20170525132202_migrate_pipeline_stages.rb
@@ -0,0 +1,14 @@
+class MigratePipelineStages < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ create_table :ci_stages do |t|
+ t.integer :project_id
+ t.integer :pipeline_id
+ t.string :name
+ t.timestamps
+ end
+ end
+end