Added user model and fixed reference in migration
This commit is contained in:
13
db/migrate/20240730214152_create_users.rb
Normal file
13
db/migrate/20240730214152_create_users.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateUsers < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :firstname
|
||||
t.string :lastname
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_foreign_key :jobs, :users, column: :operator_id
|
||||
add_foreign_key :jobs, :users, column: :costumer_id
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user