summaryrefslogtreecommitdiffstats
path: root/db/migrate/20150113194759_create_email_addresses.rb
blob: 001beda227178e64a850f286d699fa17ddee9ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateEmailAddresses < ActiveRecord::Migration[4.2]
  def change
    create_table :email_addresses do |t|
      t.column :user_id, :integer, :null => false
      t.column :address, :string, :null => false
      t.column :is_default, :boolean, :null => false, :default => false
      t.column :notify, :boolean, :null => false, :default => true
      t.column :created_on, :datetime, :null => false
      t.column :updated_on, :datetime, :null => false
    end
  end
end