diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-26 10:39:04 +0800 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-26 10:39:04 +0800 |
commit | 92cbf9453a4435976bfe77cafd0f8c5f57833e59 (patch) | |
tree | 73737cc30b6483876cbea36690a0b9830c418071 /db | |
parent | c80e6b9c1229776cf5af065954b99c182cc046c2 (diff) | |
download | gitlab-ce-92cbf9453a4435976bfe77cafd0f8c5f57833e59.tar.gz |
Switch to using ProjectCiCdSetting for group_runners_enabled and remove ProjectSettings
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20171030155459_create_project_settings.rb | 14 | ||||
-rw-r--r-- | db/schema.rb | 9 |
2 files changed, 0 insertions, 23 deletions
diff --git a/db/migrate/20171030155459_create_project_settings.rb b/db/migrate/20171030155459_create_project_settings.rb deleted file mode 100644 index ebbe4c64fbd..00000000000 --- a/db/migrate/20171030155459_create_project_settings.rb +++ /dev/null @@ -1,14 +0,0 @@ -# See http://doc.gitlab.com/ce/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - -class CreateProjectSettings < ActiveRecord::Migration - DOWNTIME = false - - def change - create_table :project_settings do |t| - t.references :project, index: true, foreign_key: { on_delete: :cascade } - - t.boolean :group_runners_enabled, default: true, index: true - end - end -end diff --git a/db/schema.rb b/db/schema.rb index 7eebe94a8a6..233423aaa90 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1511,14 +1511,6 @@ ActiveRecord::Schema.define(version: 20180425131009) do add_index "project_import_data", ["project_id"], name: "index_project_import_data_on_project_id", using: :btree - create_table "project_settings", force: :cascade do |t| - t.integer "project_id" - t.boolean "group_runners_enabled", default: true - end - - add_index "project_settings", ["group_runners_enabled"], name: "index_project_settings_on_group_runners_enabled", using: :btree - add_index "project_settings", ["project_id"], name: "index_project_settings_on_project_id", using: :btree - create_table "project_statistics", force: :cascade do |t| t.integer "project_id", null: false t.integer "namespace_id", null: false @@ -2200,7 +2192,6 @@ ActiveRecord::Schema.define(version: 20180425131009) do add_foreign_key "project_features", "projects", name: "fk_18513d9b92", on_delete: :cascade add_foreign_key "project_group_links", "projects", name: "fk_daa8cee94c", on_delete: :cascade add_foreign_key "project_import_data", "projects", name: "fk_ffb9ee3a10", on_delete: :cascade - add_foreign_key "project_settings", "projects", on_delete: :cascade add_foreign_key "project_statistics", "projects", on_delete: :cascade add_foreign_key "protected_branch_merge_access_levels", "protected_branches", name: "fk_8a3072ccb3", on_delete: :cascade add_foreign_key "protected_branch_push_access_levels", "protected_branches", name: "fk_9ffc86a3d9", on_delete: :cascade |