diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-25 22:43:16 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-25 22:43:16 +0200 |
commit | acc22a8422cd1471819510aa375c455b5ea009c5 (patch) | |
tree | 1f6d830aa5fb3407c1ce86435d579626caf13b1c /db | |
parent | 6d8963e33657b80821900a60f66d0a51416dc59a (diff) | |
download | gitlab-ce-acc22a8422cd1471819510aa375c455b5ea009c5.tar.gz |
Simplify migrations for specific database schema
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170525132202_migrate_pipeline_stages.rb | 2 | ||||
-rw-r--r-- | db/schema.rb | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/db/migrate/20170525132202_migrate_pipeline_stages.rb b/db/migrate/20170525132202_migrate_pipeline_stages.rb index 8f7da8662ec..a9fe00ebf72 100644 --- a/db/migrate/20170525132202_migrate_pipeline_stages.rb +++ b/db/migrate/20170525132202_migrate_pipeline_stages.rb @@ -8,7 +8,7 @@ class MigratePipelineStages < ActiveRecord::Migration t.integer :project_id t.integer :pipeline_id t.string :name - t.timestamps + t.timestamps null: true end end end diff --git a/db/schema.rb b/db/schema.rb index ca33c8cc2a2..581060f62fc 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170523091700) do +ActiveRecord::Schema.define(version: 20170525132202) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -325,6 +325,14 @@ ActiveRecord::Schema.define(version: 20170523091700) do add_index "ci_runners", ["locked"], name: "index_ci_runners_on_locked", using: :btree add_index "ci_runners", ["token"], name: "index_ci_runners_on_token", using: :btree + create_table "ci_stages", force: :cascade do |t| + t.integer "project_id" + t.integer "pipeline_id" + t.string "name" + t.datetime "created_at" + t.datetime "updated_at" + end + create_table "ci_trigger_requests", force: :cascade do |t| t.integer "trigger_id", null: false t.text "variables" |