Drop unused feedbacks table
Its foreign key prevent some user to be destroyed
This commit is contained in:
parent
feed725f10
commit
956d957dad
2 changed files with 6 additions and 10 deletions
5
db/migrate/20211126150915_dropfeedbackstable.rb
Normal file
5
db/migrate/20211126150915_dropfeedbackstable.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class Dropfeedbackstable < ActiveRecord::Migration[6.1]
|
||||||
|
def up
|
||||||
|
drop_table(:feedbacks, if_exists: true)
|
||||||
|
end
|
||||||
|
end
|
11
db/schema.rb
11
db/schema.rb
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 2021_11_26_080118) do
|
ActiveRecord::Schema.define(version: 2021_11_26_150915) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -433,14 +433,6 @@ ActiveRecord::Schema.define(version: 2021_11_26_080118) do
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "feedbacks", force: :cascade do |t|
|
|
||||||
t.bigint "user_id"
|
|
||||||
t.datetime "created_at", null: false
|
|
||||||
t.datetime "updated_at", null: false
|
|
||||||
t.string "rating", null: false
|
|
||||||
t.index ["user_id"], name: "index_feedbacks_on_user_id"
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "flipper_features", force: :cascade do |t|
|
create_table "flipper_features", force: :cascade do |t|
|
||||||
t.string "key", null: false
|
t.string "key", null: false
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
|
@ -854,7 +846,6 @@ ActiveRecord::Schema.define(version: 2021_11_26_080118) do
|
||||||
add_foreign_key "dossiers", "users"
|
add_foreign_key "dossiers", "users"
|
||||||
add_foreign_key "experts_procedures", "experts"
|
add_foreign_key "experts_procedures", "experts"
|
||||||
add_foreign_key "experts_procedures", "procedures"
|
add_foreign_key "experts_procedures", "procedures"
|
||||||
add_foreign_key "feedbacks", "users"
|
|
||||||
add_foreign_key "france_connect_informations", "users"
|
add_foreign_key "france_connect_informations", "users"
|
||||||
add_foreign_key "geo_areas", "champs"
|
add_foreign_key "geo_areas", "champs"
|
||||||
add_foreign_key "groupe_instructeurs", "procedures"
|
add_foreign_key "groupe_instructeurs", "procedures"
|
||||||
|
|
Loading…
Reference in a new issue