12 lines
270 B
Ruby
12 lines
270 B
Ruby
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
|