Skip to content

Commit

Permalink
delete unused languages_users table from db
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons committed Aug 9, 2023
1 parent b46a5d0 commit d09170a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 9 additions & 0 deletions db/migrate/20230809002819_drop_languages_users.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class DropLanguagesUsers < ActiveRecord::Migration[7.0]
def up
drop_table :languages_users
end

def down
fail ActiveRecord::IrreversibleMigration
end
end
9 changes: 1 addition & 8 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_07_30_103110) do
ActiveRecord::Schema[7.0].define(version: 2023_08_09_002819) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down Expand Up @@ -370,13 +370,6 @@
t.index ["casa_org_id"], name: "index_languages_on_casa_org_id"
end

create_table "languages_users", id: false, force: :cascade do |t|
t.bigint "language_id", null: false
t.bigint "user_id", null: false
t.index ["language_id"], name: "index_languages_users_on_language_id"
t.index ["user_id"], name: "index_languages_users_on_user_id"
end

create_table "learning_hour_types", force: :cascade do |t|
t.bigint "casa_org_id", null: false
t.string "name"
Expand Down

0 comments on commit d09170a

Please sign in to comment.