summaryrefslogtreecommitdiffstats
path: root/db/migrate/008_create_user_preferences.rb
blob: a0e78b570b01402df895f4a46bd9a1e0ff7b3910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: false

class CreateUserPreferences < ActiveRecord::Migration[4.2]
  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