diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-11-03 17:22:49 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-11-03 17:22:49 +0900 |
commit | 600d5f4fba4f73ef438db651d20da92080e5b3b0 (patch) | |
tree | d03a13eca8f7145a853466a88ccc4d04e138ca96 /db | |
parent | 6ebe6792de24528a2052b77018b6c1d17ef5e17b (diff) | |
download | gitlab-ce-600d5f4fba4f73ef438db651d20da92080e5b3b0.tar.gz |
Fix tests. Remove NOT NULL constraint from cluster.user.
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20171013094327_create_new_clusters_architectures.rb | 2 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20171013094327_create_new_clusters_architectures.rb b/db/migrate/20171013094327_create_new_clusters_architectures.rb index b196aa1949c..dabb3e25e48 100644 --- a/db/migrate/20171013094327_create_new_clusters_architectures.rb +++ b/db/migrate/20171013094327_create_new_clusters_architectures.rb @@ -3,7 +3,7 @@ class CreateNewClustersArchitectures < ActiveRecord::Migration def change create_table :clusters do |t| - t.references :user, null: false, index: true, foreign_key: { on_delete: :nullify } + t.references :user, index: true, foreign_key: { on_delete: :nullify } t.integer :provider_type t.integer :platform_type diff --git a/db/schema.rb b/db/schema.rb index e87afee74ad..f88abaab86e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -507,7 +507,7 @@ ActiveRecord::Schema.define(version: 20171026082505) do add_index "cluster_providers_gcp", ["cluster_id"], name: "index_cluster_providers_gcp_on_cluster_id", unique: true, using: :btree create_table "clusters", force: :cascade do |t| - t.integer "user_id", null: false + t.integer "user_id" t.integer "provider_type" t.integer "platform_type" t.datetime_with_timezone "created_at", null: false |