wedding-planner/db/migrate/20241118232609_create_users.rb

12 lines
270 B
Ruby
Raw Normal View History

class CreateUsers < ActiveRecord::Migration[8.0]
def change
create_table :users do |t|
t.string :email_address, null: false
t.string :password_digest, null: false
t.timestamps
end
add_index :users, :email_address, unique: true
end
end