mirror of
https://github.com/danbee/danbarberphoto
synced 2026-06-20 22:52:22 +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
|