mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
fix deprecation warnings
This commit is contained in:
parent
b343d0a09e
commit
eaa66be698
19 changed files with 37 additions and 33 deletions
|
|
@ -4,7 +4,7 @@ class AddPreferencesToUserTable < ActiveRecord::Migration
|
|||
|
||||
def self.up
|
||||
add_column :users, :preferences, :text
|
||||
@users = User.find(:all)
|
||||
@users = User.all
|
||||
@users.each do |u|
|
||||
u.preferences = { "date_format" => "%d/%m/%Y", "week_starts" => "1", "no_completed" => "5", "staleness_starts" => "7", "due_style" => "1", "admin_email" => "butshesagirl@rousette.org.uk"}
|
||||
u.save
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue