1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/db/migrate/20151023163642_create_users.rb
2015-10-26 14:26:32 +00:00

13 lines
247 B
Ruby

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