From f93ff5b381a24168ff13d75c50167f5cac9872c3 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Mon, 5 Jan 2015 10:21:20 +0100 Subject: [PATCH] Explicitly set null:true for migrations with timestamps --- db/migrate/20141130153941_create_problems.rb | 2 +- db/migrate/20141214214958_create_problems_again.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20141130153941_create_problems.rb b/db/migrate/20141130153941_create_problems.rb index f85a4ea..ea807b0 100644 --- a/db/migrate/20141130153941_create_problems.rb +++ b/db/migrate/20141130153941_create_problems.rb @@ -4,7 +4,7 @@ class CreateProblems < ActiveRecord::Migration t.string :title t.text :content - t.timestamps + t.timestamps null: true end end end diff --git a/db/migrate/20141214214958_create_problems_again.rb b/db/migrate/20141214214958_create_problems_again.rb index 578d123..1a137b5 100644 --- a/db/migrate/20141214214958_create_problems_again.rb +++ b/db/migrate/20141214214958_create_problems_again.rb @@ -1,7 +1,7 @@ class CreateProblemsAgain < ActiveRecord::Migration def change create_table :problems do |t| - t.timestamps + t.timestamps null: true end end end