Dashboard agora com rss e ical

This commit is contained in:
2008-03-05 06:52:52 -03:00
parent ba4a6a20fe
commit e5bc6024ba
15 changed files with 101 additions and 35 deletions

View File

@@ -0,0 +1,13 @@
class UserSecret < ActiveRecord::Migration
def self.up
add_column :users, :secret, :string, :null => true
User.find(:all).each do |user|
user.update_attribute(:secret, User.random_string(32))
end
change_column :users, :secret, :string, :null => false
end
def self.down
remove_column :users, :secret
end
end