openstreetmap-website/db/migrate/20240813070506_add_deactivates_at_to_user_blocks.rb
Anton Khorev cff4c63713 Add deactivates_at date to user blocks
Block deactivation dates that take needs_view-block views into account were derived using updated_at. This was possible because inactive blocks couldn't be edited and their updated_at date wouldn't change. With editing of inactive blocks enabled deactivation date needs to be saved explicitly.
2024-08-19 14:33:20 +03:00

5 lines
146 B
Ruby

class AddDeactivatesAtToUserBlocks < ActiveRecord::Migration[7.1]
def change
add_column :user_blocks, :deactivates_at, :timestamp
end
end