Skip to content
Snippets Groups Projects
Commit 1e20f28f authored by Arnaud Levy's avatar Arnaud Levy
Browse files

tested

parent c9eb5a85
No related branches found
No related tags found
No related merge requests found
class AddPublishedAtToCommunicationWebsitePage < ActiveRecord::Migration[7.1]
def change
add_column :communication_website_pages, :published_at, :datetime
Communication::Website::Page.where(published: true).update_all published_at: Time.now
Communication::Website::Page.where(published: true).update_all("published_at = updated_at")
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment