mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Removed superfluous 'tracks' directory at the root of the repository.
Testing commits to github.
This commit is contained in:
parent
6a42901514
commit
4cbf5a34d3
2269 changed files with 0 additions and 0 deletions
15
db/migrate/009_add_user_pref_refresh.rb
Normal file
15
db/migrate/009_add_user_pref_refresh.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class AddUserPrefRefresh < ActiveRecord::Migration
|
||||
|
||||
class User < ActiveRecord::Base; serialize :preferences; end
|
||||
|
||||
def self.up
|
||||
@users = User.find(:all)
|
||||
@users.each do |user|
|
||||
user.preferences.merge!({"refresh" => "0"})
|
||||
user.save
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue