Dashboard agora com rss e ical
This commit is contained in:
13
db/migrate/030_user_secret.rb
Normal file
13
db/migrate/030_user_secret.rb
Normal 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
|
||||
@@ -9,7 +9,7 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 29) do
|
||||
ActiveRecord::Schema.define(:version => 30) do
|
||||
|
||||
create_table "attachments", :force => true do |t|
|
||||
t.string "file_name", :null => false
|
||||
@@ -87,6 +87,7 @@ ActiveRecord::Schema.define(:version => 29) do
|
||||
t.datetime "last_seen", :null => false
|
||||
t.string "login_key"
|
||||
t.boolean "admin", :default => false, :null => false
|
||||
t.string "secret", :null => false
|
||||
end
|
||||
|
||||
create_table "wiki_page_versions", :force => true do |t|
|
||||
|
||||
Reference in New Issue
Block a user