Rezervacije
This commit is contained in:
15
db/migrate/20240804060112_create_reservations.rb
Normal file
15
db/migrate/20240804060112_create_reservations.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateReservations < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :reservations do |t|
|
||||
t.references :company, null: false, foreign_key: true
|
||||
t.references :customer, null: false, foreign_key: true
|
||||
t.references :place, null: false, foreign_key: true
|
||||
t.string :title
|
||||
t.text :description
|
||||
t.datetime :start_time
|
||||
t.datetime :end_time
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user