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
2021-07-16 12:58:13 -05:00

13 lines
278 B
Ruby

class CreateUsers < ActiveRecord::Migration[5.1]
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