Drop unused feedbacks table

Its foreign key prevent some user to be destroyed
This commit is contained in:
simon lehericey 2021-11-26 16:13:44 +01:00
parent feed725f10
commit 956d957dad
2 changed files with 6 additions and 10 deletions

View file

@ -0,0 +1,5 @@
class Dropfeedbackstable < ActiveRecord::Migration[6.1]
def up
drop_table(:feedbacks, if_exists: true)
end
end

View file

@ -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"