Skip to content

Commit

Permalink
timestamps is set to null false
Browse files Browse the repository at this point in the history
  • Loading branch information
musaffa committed Jul 31, 2015
1 parent 91b3d20 commit d5ab5ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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
Expand Down

0 comments on commit d5ab5ec

Please sign in to comment.