Commit db9f7658 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Rename clusters_applications_jupyters to uncountable

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent c075a047
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment