mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
13 lines
278 B
Ruby
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
|