Skip to content

Commit

Permalink
Update db/migrate/20241023101945_add_status_attribute_to_room.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Brousse <[email protected]>
  • Loading branch information
B-Rass and nicolas-brousse authored Oct 29, 2024
1 parent 5fa873a commit 8c1f505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20241023101945_add_status_attribute_to_room.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def change
up_only do
MigrationRoom.find_each do |room|
status = room.display_on_home_page ? 0 : 1
room.update(status: status)
room.update!(status: status)
end

change_column_null(:rooms, :status, false)
Expand Down

0 comments on commit 8c1f505

Please sign in to comment.