Skip to content
Snippets Groups Projects
Unverified Commit 0b2ca23b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Improve jupyter app db migrations

parent 22866a28
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -9,15 +9,15 @@ class CreateClustersApplicationsJupyter < ActiveRecord::Migration
def change
create_table :clusters_applications_jupyter do |t|
t.references :cluster, null: false, unique: true, foreign_key: { on_delete: :cascade }
t.references :oauth_application
t.references :oauth_application, foreign_key: { on_delete: :nullify }
 
t.integer :status, null: false
t.string :version, null: false
t.string :hostname
 
t.text :status_reason
t.timestamps_with_timezone null: false
t.text :status_reason
end
end
end
Loading
Loading
@@ -2208,6 +2208,8 @@ ActiveRecord::Schema.define(version: 20180529093006) do
add_foreign_key "clusters_applications_helm", "clusters", on_delete: :cascade
add_foreign_key "clusters_applications_ingress", "clusters", name: "fk_753a7b41c1", on_delete: :cascade
add_foreign_key "clusters_applications_prometheus", "clusters", name: "fk_557e773639", on_delete: :cascade
add_foreign_key "clusters_applications_jupyter", "clusters", on_delete: :cascade
add_foreign_key "clusters_applications_jupyter", "oauth_applications", on_delete: :nullify
add_foreign_key "clusters_applications_runners", "ci_runners", column: "runner_id", name: "fk_02de2ded36", on_delete: :nullify
add_foreign_key "clusters_applications_runners", "clusters", on_delete: :cascade
add_foreign_key "container_repositories", "projects"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment