diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-15 13:00:13 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-15 13:00:13 +0200 |
commit | 14433b341d5e8f0e55d984b478267f5df98f42ae (patch) | |
tree | 7aeb7fbe6924066240f0e6abdee54772967d3ddf /db/schema.rb | |
parent | eb26755d63dbe3b4c32230a2ec8730a0d889f292 (diff) | |
download | gitlab-ce-14433b341d5e8f0e55d984b478267f5df98f42ae.tar.gz |
Make `project_id` and `environment_id` nullableenvironments-and-deployments
This is done to make belongs_to with required to properly validate association.
Otherwise `ActiveRecord::StatementInvalid` is raised.
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/schema.rb b/db/schema.rb index 3ac64e888ee..1e8d86d0aae 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -385,8 +385,8 @@ ActiveRecord::Schema.define(version: 20160610301627) do create_table "deployments", force: :cascade do |t| t.integer "iid", null: false - t.integer "project_id", null: false - t.integer "environment_id", null: false + t.integer "project_id" + t.integer "environment_id" t.string "ref", null: false t.boolean "tag", null: false t.string "sha", null: false @@ -413,7 +413,7 @@ ActiveRecord::Schema.define(version: 20160610301627) do add_index "emails", ["user_id"], name: "index_emails_on_user_id", using: :btree create_table "environments", force: :cascade do |t| - t.integer "project_id", null: false + t.integer "project_id" t.string "name", null: false t.datetime "created_at" t.datetime "updated_at" |