1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/db/migrate/20151023165644_create_users.rb

13 lines
273 B
Ruby

class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :email, null: false
t.string :password_digest, null: false, limit: 60
t.timestamps null: false
end
add_index :users, :email, unique: true
end
end