Rename clusters_applications_jupyters to uncountable

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2018-05-30 12:09:12 +03:00
parent c075a047cd
commit db9f765852
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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