11 lines
228 B
Ruby
11 lines
228 B
Ruby
class CreateUsers < ActiveRecord::Migration[8.0]
|
|
def change
|
|
create_table :users do |t|
|
|
t.string :email
|
|
t.string :password_digest
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :users, :email, unique: true
|
|
end
|
|
end
|