20160221003140_create_users.rb 307 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class CreateUsers < ActiveRecord::Migration[4.2]
  3. def change
  4. create_table :users do |t|
  5. t.string :email, null: false, default: ''
  6. t.integer :account_id, null: false
  7. t.timestamps null: false
  8. end
  9. add_index :users, :email, unique: true
  10. end
  11. end