mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +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
17
db/migrate/006_add_preferences_to_user_table.rb
Normal file
17
db/migrate/006_add_preferences_to_user_table.rb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
class AddPreferencesToUserTable < ActiveRecord::Migration
|
||||
|
||||
class User < ActiveRecord::Base; end
|
||||
|
||||
def self.up
|
||||
add_column :users, :preferences, :text
|
||||
@users = User.find(: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
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :users, :preferences
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue