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:
Diffstat (limited to 'db/ci/migrate/20141103135037_add_parallel_to_build.rb')
-rw-r--r--db/ci/migrate/20141103135037_add_parallel_to_build.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/ci/migrate/20141103135037_add_parallel_to_build.rb b/db/ci/migrate/20141103135037_add_parallel_to_build.rb
new file mode 100644
index 00000000000..2a3f64facf1
--- /dev/null
+++ b/db/ci/migrate/20141103135037_add_parallel_to_build.rb
@@ -0,0 +1,12 @@
+class AddParallelToBuild < ActiveRecord::Migration
+ def change
+ create_table :jobs do |t|
+ t.integer :project_id, null: false
+ t.text :commands
+ t.boolean :active, null: false, default: true
+ t.timestamps
+ end
+
+ add_index :jobs, :project_id
+ end
+end