Sha256: 212abf6395120579068e82f6a0705d93654a4dddcea7273ed8662669df53b0b5
Contents?: true
Size: 809 Bytes
Versions: 6
Compression:
Stored size: 809 Bytes
Contents
after :loupes do FactoryGirl.create(:case, name: 'bootswitch', title: 'Bootswitch' ) FactoryGirl.create(:case, name: 'customizable_bootstrap', title: 'Customizable Bootstrap' ) FactoryGirl.create(:case, name: 'bootstrap_leather', title: 'Bootstrap Leather' ) FactoryGirl.create(:case, name: 'bootstrap_pager', title: 'Bootstrap Pager' ).freshen expired = FactoryGirl.create(:case, name: 'private_person', title: 'Private Person' ) yesterday = 1.day.ago.to_datetime.to_s Museum::Case.where(id: expired.id).update_all("updated_at='#{yesterday}', created_at='#{yesterday}'") end
Version data entries
6 entries across 6 versions & 1 rubygems