OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/db/migrate/20200217061622_add_timestam...

10 lines
273 B

class AddTimestampToNews < ActiveRecord::Migration[6.0]
def change
add_column :news, :updated_at, :datetime
rename_column :news, :created_on, :created_at
reversible do |change|
change.up { News.update_all("updated_at = created_at") }
end
end
end