Defect #20533

DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`.

Added by Go MAEDA over 2 years ago. Updated over 2 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Rails support
Target version:-
Resolution:Fixed Affected version:

Description

I got the following warning while migrating database.
This is caused by a migration file 'db/migrate/20150730122707_create_imports.rb' which was added in r14493.

== 20150730122707 CreateImports: migrating ====================================
-- create_table(:imports)
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/maeda/redmines/redmine-trunk/db/migrate/20150730122707_create_imports.rb:10)

Associated revisions

Revision 14505
Added by Jean-Philippe Lang over 2 years ago

DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null` (#905, #20533).

History

#1 Updated by Jean-Philippe Lang over 2 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Fixed in r14505, thanks.

Also available in: Atom PDF