Soc/db/migrate/20230808190158_create_users.rb

14 lines
379 B
Ruby
Raw Normal View History

2023-08-08 19:25:35 +00:00
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