add individual user preference read/write, and default all new users to having public data
This commit is contained in:
parent
f8281076bd
commit
4b3c207a81
4 changed files with 47 additions and 4 deletions
12
db/migrate/012_add_user_preference_id.rb
Normal file
12
db/migrate/012_add_user_preference_id.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
class AddUserPreferenceId < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column "user_preferences", "id", :bigint, :limit => 64, :null => false, :options => "AUTO_INCREMENT"
|
||||
|
||||
add_index "user_preferences", ["id"], :name => "user_preferences_id_idx"
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index 'user_preferences', 'id'
|
||||
remove_column 'user_preferences', 'id'
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue