summaryrefslogtreecommitdiff
path: root/db/migrate/20140325214531_create_users.rb
blob: 803287024820e8e2c5e22baaaada5e0ff6e2fc67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :name
      t.string :email
      t.string :user_name

      t.timestamps
    end
    add_index :users, :email, unique: true
    add_index :users, :user_name, unique: true
  end
end