From d5ab5ec77a7280a11cd0d4b979807d29130a3fbb Mon Sep 17 00:00:00 2001 From: Ahmad Musaffa Date: Fri, 31 Jul 2015 17:09:18 +0600 Subject: [PATCH] timestamps is set to null false --- spec/dummy/db/migrate/20141002195532_polymorphic_tables.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/dummy/db/migrate/20141002195532_polymorphic_tables.rb b/spec/dummy/db/migrate/20141002195532_polymorphic_tables.rb index 6f95d62..f7cd55a 100644 --- a/spec/dummy/db/migrate/20141002195532_polymorphic_tables.rb +++ b/spec/dummy/db/migrate/20141002195532_polymorphic_tables.rb @@ -1,16 +1,16 @@ class PolymorphicTables < ActiveRecord::Migration def change create_table :employees do |t| - t.timestamps + t.timestamps null: false end create_table :products do |t| - t.timestamps + t.timestamps null: false end create_table :pictures do |t| t.references :imageable, polymorphic: true - t.timestamps + t.timestamps null: false end add_polymorphic_constraints :imageable, :pictures