fix(data): ensure to populate closed column in after_party migration
This commit is contained in:
parent
4275096349
commit
a1623a1213
2 changed files with 9 additions and 1 deletions
|
@ -0,0 +1,8 @@
|
||||||
|
class BackfillAddColumnClosedToGroupeInstructeurs < ActiveRecord::Migration[6.1]
|
||||||
|
def up
|
||||||
|
GroupeInstructeur.in_batches do |relation|
|
||||||
|
relation.update_all closed: false
|
||||||
|
sleep(0.01)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -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: 2022_06_20_141238) do
|
ActiveRecord::Schema.define(version: 2022_06_21_160241) 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 "pgcrypto"
|
enable_extension "pgcrypto"
|
||||||
|
|
Loading…
Reference in a new issue