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/20180518130559_add_timestam...

10 lines
375 B

class AddTimestampsToWiki < ActiveRecord::Migration[5.1]
def change
add_timestamps :wikis, default: DateTime.now
change_column_default :wikis, :created_at, nil
change_column_default :wikis, :updated_at, nil
add_column :wiki_pages, :updated_at, :datetime, default: DateTime.now, null: false
change_column_default :wiki_pages, :updated_at, nil
end
end