Skip to content

Commit

Permalink
fix: dependent: :destroy, b. uploads -> reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph-Burke committed Mar 18, 2022
1 parent 73cd626 commit 37600f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/bulk_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
#

class BulkUpload < ActiveRecord::Base
has_many :reports
has_many :reports, dependent: :destroy
end
12 changes: 11 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20160927163754) do
ActiveRecord::Schema.define(version: 20220317171004) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -72,6 +72,16 @@
t.datetime "updated_at", null: false
end

create_table "sessions", force: :cascade do |t|
t.string "session_id", null: false
t.text "data"
t.datetime "created_at"
t.datetime "updated_at"
end

add_index "sessions", ["session_id"], name: "index_sessions_on_session_id", unique: true, using: :btree
add_index "sessions", ["updated_at"], name: "index_sessions_on_updated_at", using: :btree

create_table "users", force: :cascade do |t|
t.integer "role_id"
t.string "first_name"
Expand Down

0 comments on commit 37600f6

Please sign in to comment.