14 lines
379 B
Ruby
14 lines
379 B
Ruby
class CreateUsers < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :users do |t|
|
|
t.string :username, null: false, index: { unique: true }
|
|
t.string :password_digest, null: false
|
|
t.string :first_name, null: false
|
|
t.string :last_names, null: false
|
|
t.string :email, null: false, index: { unique: true }
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|