008_create_user_preferences.rb 286 Bytes
Newer Older
1
class CreateUserPreferences < ActiveRecord::Migration[4.2]
jplang's avatar
jplang committed
2 3 4 5 6 7 8 9 10 11 12
  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