From db9f765852d9fef464e69c0bf47a382f2ab7219d Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 30 May 2018 12:09:12 +0300 Subject: [PATCH] Rename clusters_applications_jupyters to uncountable Signed-off-by: Dmitriy Zaporozhets --- app/models/clusters/applications/jupyter.rb | 2 +- .../20180511131058_create_clusters_applications_jupyter.rb | 2 +- db/schema.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/clusters/applications/jupyter.rb b/app/models/clusters/applications/jupyter.rb index 64217b6240f..975d434e1a4 100644 --- a/app/models/clusters/applications/jupyter.rb +++ b/app/models/clusters/applications/jupyter.rb @@ -3,7 +3,7 @@ module Clusters class Jupyter < ActiveRecord::Base VERSION = '0.0.1'.freeze - self.table_name = 'clusters_applications_jupyters' + self.table_name = 'clusters_applications_jupyter' include ::Clusters::Concerns::ApplicationCore include ::Clusters::Concerns::ApplicationStatus diff --git a/db/migrate/20180511131058_create_clusters_applications_jupyter.rb b/db/migrate/20180511131058_create_clusters_applications_jupyter.rb index 53aee1a5abf..91210f0caa6 100644 --- a/db/migrate/20180511131058_create_clusters_applications_jupyter.rb +++ b/db/migrate/20180511131058_create_clusters_applications_jupyter.rb @@ -7,7 +7,7 @@ class CreateClustersApplicationsJupyter < ActiveRecord::Migration DOWNTIME = false def change - create_table :clusters_applications_jupyters do |t| + create_table :clusters_applications_jupyter do |t| t.references :cluster, null: false, unique: true, foreign_key: { on_delete: :cascade } t.references :oauth_application diff --git a/db/schema.rb b/db/schema.rb index 7c6d5b92c80..207ff976407 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -635,7 +635,7 @@ ActiveRecord::Schema.define(version: 20180521171529) do t.string "external_ip" end - create_table "clusters_applications_jupyters", force: :cascade do |t| + create_table "clusters_applications_jupyter", force: :cascade do |t| t.integer "cluster_id", null: false t.integer "oauth_application_id" t.integer "status", null: false