aboutsummaryrefslogblamecommitdiffstats
path: root/db/migrate/20241111160537_create_users.rb
blob: e7ef626aba120d3c5180bbe3789f9e42ca72933a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                  
class CreateUsers < ActiveRecord::Migration[8.0]
  def change
    create_table :users do |t|
      t.string :first_name, null: false
      t.string :last_name, null: false
      t.string :email_address, null: false
      t.string :password_digest, null: false

      t.timestamps
    end
    add_index :users, :email_address, unique: true
  end
end