mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Explicitly set null:true for migrations with timestamps
This commit is contained in:
@@ -4,7 +4,7 @@ class CreateProblems < ActiveRecord::Migration
|
||||
t.string :title
|
||||
t.text :content
|
||||
|
||||
t.timestamps
|
||||
t.timestamps null: true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class CreateProblemsAgain < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :problems do |t|
|
||||
t.timestamps
|
||||
t.timestamps null: true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user