mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
fix deprecation warnings
This commit is contained in:
parent
b343d0a09e
commit
eaa66be698
19 changed files with 37 additions and 33 deletions
|
|
@ -3,7 +3,7 @@ class AddUserPrefRefresh < ActiveRecord::Migration
|
|||
class User < ActiveRecord::Base; serialize :preferences; end
|
||||
|
||||
def self.up
|
||||
@users = User.find(:all)
|
||||
@users = User.all
|
||||
@users.each do |user|
|
||||
user.preferences.merge!({"refresh" => "0"})
|
||||
user.save
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue