diff options
Diffstat (limited to 'db/migrate/008_create_user_preferences.rb')
-rw-r--r-- | db/migrate/008_create_user_preferences.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/008_create_user_preferences.rb b/db/migrate/008_create_user_preferences.rb new file mode 100644 index 000000000..80ae1cdf9 --- /dev/null +++ b/db/migrate/008_create_user_preferences.rb @@ -0,0 +1,12 @@ +class CreateUserPreferences < ActiveRecord::Migration + def self.up + create_table :user_preferences do |t| + t.column "user_id", :integer, :default => 0, :null => false + t.column "others", :text + end + end + + def self.down + drop_table :user_preferences + end +end |