# Code::TidyAll /.tidyall.d/ .idea # Logs and databases # ###################### *.log *.sqlite3-* # Compiled source # ################### *.com *.class *.dll *.pyc *.o *.so luacov.stats.out # OS generated files # ###################### *.orig .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes ehthumbs.db Thumbs.db ate/008_create_user_preferences.rb?h=3.1.4' type='application/atom+xml'/>
summaryrefslogtreecommitdiffstats
path: root/db/migrate/008_create_user_preferences.rb
blob: 80ae1cdf97962e650e04a72d47fb058495274bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
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