You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

008_create_user_preferences.rb 286B

123456789101112
  1. class CreateUserPreferences < ActiveRecord::Migration[4.2]
  2. def self.up
  3. create_table :user_preferences do |t|
  4. t.column "user_id", :integer, :default => 0, :null => false
  5. t.column "others", :text
  6. end
  7. end
  8. def self.down
  9. drop_table :user_preferences
  10. end
  11. end