Skip to content

Conversation

@mikeastock
Copy link
Contributor

Fix Rails 5 deprecation warning for not explicitly setting the null option
for timestamps. Also moved other timestamps to use timestamps method.

This PR also changes passing id into exists?

This deprecation warning was introduced in rails/rails#16481

Fix Rails 5 deprecation warning for not explicitly setting the null option for timestamps. Also moved other timestamps to use timestamps method This deprecation warning was introduced in rails/rails#16481
While waiting for this PR to get merged: alexrothenberg/ammeter#50
The warning is: ``` You are passing an instance of ActiveRecord::Base to `exists?`. Please pass the id of the object by calling `.id`. ```
@mikeastock mikeastock changed the title Specify null false for timestamps Specify null false for timestamps and pass id to exists? Aug 4, 2015
@mceachen mceachen merged commit e66ed35 into ClosureTree:master Sep 5, 2015
@mikeastock mikeastock deleted the fix_rails_5_deprecation_warning branch September 5, 2015 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants