Replace old migrations with a single “recreate_structure”
* copy-paste the description from schema.rb, * without the `force: :cascade` options (that drops the tables before recreating them). * create a new migration with it * give it the same timestamp as the last deleted migration, so that it exists in the schema_migration table and it is not run in production. * (Also got rid of some stray changes in schema.rb for mon_avis and unconfirmed_email) * Run rake db:migrate and make sure nothing moves
This commit is contained in:
parent
f2b399df72
commit
661b80777d
292 changed files with 653 additions and 3112 deletions
|
@ -530,7 +530,6 @@ ActiveRecord::Schema.define(version: 2019_08_28_073736) do
|
|||
t.boolean "durees_conservation_required", default: true
|
||||
t.string "path"
|
||||
t.string "declarative_with_state"
|
||||
t.text "monavis"
|
||||
t.text "monavis_embed"
|
||||
t.index ["declarative_with_state"], name: "index_procedures_on_declarative_with_state"
|
||||
t.index ["hidden_at"], name: "index_procedures_on_hidden_at"
|
||||
|
@ -622,10 +621,10 @@ ActiveRecord::Schema.define(version: 2019_08_28_073736) do
|
|||
t.string "confirmation_token"
|
||||
t.datetime "confirmed_at"
|
||||
t.datetime "confirmation_sent_at"
|
||||
t.text "unconfirmed_email"
|
||||
t.integer "failed_attempts", default: 0, null: false
|
||||
t.string "unlock_token"
|
||||
t.datetime "locked_at"
|
||||
t.text "unconfirmed_email"
|
||||
t.bigint "instructeur_id"
|
||||
t.bigint "administrateur_id"
|
||||
t.index ["administrateur_id"], name: "index_users_on_administrateur_id"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue