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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-25 16:35:09 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-25 16:35:09 +0300
commit6d8963e33657b80821900a60f66d0a51416dc59a (patch)
tree1a9317c7416a3d98108482e61e503b993125c4e7 /db/migrate
parent7ea9c5ce9a5b2b5d80ab423ec6c2318c1cc3d96f (diff)
Add PoC of ActiveRecord migration testing
Diffstat (limited to 'db/migrate')
-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