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 ...@@ -3,7 +3,7 @@ module Clusters
class Jupyter < ActiveRecord::Base class Jupyter < ActiveRecord::Base
VERSION = '0.0.1'.freeze VERSION = '0.0.1'.freeze
self.table_name = 'clusters_applications_jupyters' self.table_name = 'clusters_applications_jupyter'
include ::Clusters::Concerns::ApplicationCore include ::Clusters::Concerns::ApplicationCore
include ::Clusters::Concerns::ApplicationStatus include ::Clusters::Concerns::ApplicationStatus
......
...@@ -7,7 +7,7 @@ class CreateClustersApplicationsJupyter < ActiveRecord::Migration ...@@ -7,7 +7,7 @@ class CreateClustersApplicationsJupyter < ActiveRecord::Migration
DOWNTIME = false DOWNTIME = false
def change 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 :cluster, null: false, unique: true, foreign_key: { on_delete: :cascade }
t.references :oauth_application t.references :oauth_application
......
...@@ -635,7 +635,7 @@ ActiveRecord::Schema.define(version: 20180521171529) do ...@@ -635,7 +635,7 @@ ActiveRecord::Schema.define(version: 20180521171529) do
t.string "external_ip" t.string "external_ip"
end 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 "cluster_id", null: false
t.integer "oauth_application_id" t.integer "oauth_application_id"
t.integer "status", null: false 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