add individual user preference read/write, and default all new users to having public data

This commit is contained in:
Steve Coast 2008-05-03 12:57:48 +00:00
parent f8281076bd
commit 4b3c207a81
4 changed files with 47 additions and 4 deletions

View 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