diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-11-01 21:28:47 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-11-01 21:28:47 +0900 |
commit | 0c417ef0435ca49dba451a7270235f775d1d9a75 (patch) | |
tree | b0f7cc6d57bec3ab0844df97cde903bcada19563 /db/schema.rb | |
parent | 6571efb6c3afd568c019e7bb46aba84328a4e821 (diff) | |
download | gitlab-ce-0c417ef0435ca49dba451a7270235f775d1d9a75.tar.gz |
Improve migration file. Add migration spec. Reorder columns of the table.
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/db/schema.rb b/db/schema.rb index 611435af082..adf8b9594fb 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -464,7 +464,9 @@ ActiveRecord::Schema.define(version: 20171017145932) do create_table "cluster_platforms_kubernetes", force: :cascade do |t| t.integer "cluster_id", null: false - t.string "api_url" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.text "api_url" t.text "ca_cert" t.string "namespace" t.string "username" @@ -472,8 +474,6 @@ ActiveRecord::Schema.define(version: 20171017145932) do t.string "encrypted_password_iv" t.text "encrypted_token" t.string "encrypted_token_iv" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false end add_index "cluster_platforms_kubernetes", ["cluster_id"], name: "index_cluster_platforms_kubernetes_on_cluster_id", unique: true, using: :btree @@ -491,31 +491,34 @@ ActiveRecord::Schema.define(version: 20171017145932) do create_table "cluster_providers_gcp", force: :cascade do |t| t.integer "cluster_id", null: false t.integer "status" + t.integer "num_nodes", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.text "status_reason" t.string "gcp_project_id", null: false t.string "zone", null: false - t.integer "num_nodes", null: false t.string "machine_type" t.string "operation_id" t.string "endpoint" t.text "encrypted_access_token" t.string "encrypted_access_token_iv" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false end 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" - t.boolean "enabled", default: true - t.string "name", null: false + t.integer "user_id", null: false t.integer "provider_type", null: false t.integer "platform_type", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.boolean "enabled", default: true + t.string "name", null: false end + add_index "clusters", ["enabled"], name: "index_clusters_on_enabled", using: :btree + add_index "clusters", ["user_id"], name: "index_clusters_on_user_id", using: :btree + create_table "container_repositories", force: :cascade do |t| t.integer "project_id", null: false t.string "name", null: false |