Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecation warning during migrate about timestamps #242

Conversation

jumichot
Copy link

@jumichot jumichot commented Dec 3, 2015

This warning occurs when you tried to rake:db migrate in a rails 4.2
application. It's a deprecation warning for upcoming rails 5, a null
option need to be given :

DEPRECATION WARNING: #timestamp 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 up at
db/migrate/20151104181305_create_activities.rb:12)

This warning occurs when you tried to rake:db migrate in a rails 4.2
application. It's a deprecation warning for upcoming rails 5, a null
option need to be given :

DEPRECATION WARNING: `#timestamp` 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 up at
db/migrate/20151104181305_create_activities.rb:12)
@pokonski
Copy link
Member

pokonski commented Dec 3, 2015

Sweet, thanks Julien!

pokonski added a commit that referenced this pull request Dec 3, 2015
…ning

Remove deprecation warning during migrate about timestamps
@pokonski pokonski merged commit aa2a77a into public-activity:master Dec 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants