parent
c23f58a6df
commit
a70c656690
21 changed files with 309 additions and 2 deletions
11
db/migrate/20240727022931_create_users.rb
Normal file
11
db/migrate/20240727022931_create_users.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
10
db/schema.rb
generated
10
db/schema.rb
generated
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2024_07_27_002531) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2024_07_27_022931) do
|
||||
create_table "credit_card_bills", force: :cascade do |t|
|
||||
t.string "description"
|
||||
t.decimal "amount"
|
||||
|
@ -148,6 +148,14 @@ ActiveRecord::Schema[8.0].define(version: 2024_07_27_002531) do
|
|||
t.index ["key"], name: "index_solid_queue_semaphores_on_key", unique: true
|
||||
end
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "email"
|
||||
t.string "password_digest"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["email"], name: "index_users_on_email", unique: true
|
||||
end
|
||||
|
||||
add_foreign_key "incomes", "members"
|
||||
add_foreign_key "solid_queue_blocked_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
|
||||
add_foreign_key "solid_queue_claimed_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue