[#878] add timestamp to dossier
This commit is contained in:
parent
3aad85e925
commit
b7132ffcc8
2 changed files with 8 additions and 0 deletions
6
db/migrate/20150922085811_add_time_stamp_to_dossier.rb
Normal file
6
db/migrate/20150922085811_add_time_stamp_to_dossier.rb
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue