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.
5 lines
146 B
Ruby
5 lines
146 B
Ruby
class AddDeactivatesAtToUserBlocks < ActiveRecord::Migration[7.1]
|
|
def change
|
|
add_column :user_blocks, :deactivates_at, :timestamp
|
|
end
|
|
end
|