[#878] add timestamp to dossier

This commit is contained in:
Tanguy PATTE 2015-09-22 11:04:04 +02:00
parent 3aad85e925
commit b7132ffcc8
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,6 @@
class AddTimeStampToDossier < ActiveRecord::Migration
def change
add_column :dossiers, :created_at, :datetime
add_column :dossiers, :updated_at, :datetime
end
end

View file

@ -14,6 +14,8 @@ describe Dossier do
it { is_expected.to have_db_column(:lien_plus_infos) }
it { is_expected.to have_db_column(:mail_contact) }
it { is_expected.to have_db_column(:dossier_termine) }
it { is_expected.to have_db_column(:created_at) }
it { is_expected.to have_db_column(:updated_at) }
end
describe 'associations' do