class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :firstname
      t.string :lastname
      t.string :login, null: false
      t.string :email
      t.string :password_digest

      t.timestamps null: false
    end
    add_index :users, :login, unique: true
    add_index :users, :email
  end
end
