demarches-normaliennes/db/migrate/20150922085811_add_time_stamp_to_dossier.rb

7 lines
213 B
Ruby
Raw Normal View History

2015-09-22 11:04:04 +02:00
class AddTimeStampToDossier < ActiveRecord::Migration
def change
add_column :dossiers, :created_at, :datetime, default: Time.now
add_column :dossiers, :updated_at, :datetime, default: Time.now
2015-09-22 11:04:04 +02:00
end
end