mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-11-23 19:33:46 +01:00
Explicitly set null:true for migrations with timestamps
This commit is contained in:
1 parent
d12d3e0f3b
commit
f93ff5b381
2 files changed
+2
-2
No files matched your search
@@ -4,7 +4,7 @@ class CreateProblems < ActiveRecord::Migration
|
|||||||
t.string :title
|
t.string :title
|
||||||
t.text :content
|
t.text :content
|
||||||
|
|
||||||
t.timestamps
|
t.timestamps null: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
class CreateProblemsAgain < ActiveRecord::Migration
|
class CreateProblemsAgain < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
create_table :problems do |t|
|
create_table :problems do |t|
|
||||||
t.timestamps
|
t.timestamps null: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in new issue
Block a user