Calendar is shown
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
class CreateTeams < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :teams do |t|
|
||||
|
||||
t.string :name
|
||||
t.references :company, null: false, foreign_key: true
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
class ChangePlaceToTeamInReservations < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
remove_reference :reservations, :place, foreign_key: true
|
||||
add_reference :reservations, :team, null: false, foreign_key: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user