Calendar is fullscreen

This commit is contained in:
2024-08-11 14:18:36 +02:00
parent 6d5509856f
commit e0d9d3a6b9
57 changed files with 431 additions and 362 deletions

View File

@@ -1,10 +0,0 @@
class CreatePlaces < ActiveRecord::Migration[7.1]
def change
create_table :places do |t|
t.string :name
t.references :company, null: false, foreign_key: true
t.timestamps
end
end
end

View File

@@ -0,0 +1,6 @@
class RemoveTitleAndDescriptionFromReservations < ActiveRecord::Migration[7.1]
def change
remove_column :reservations, :title, :string
remove_column :reservations, :description, :text
end
end

View File

@@ -0,0 +1,8 @@
class CreateTeams < ActiveRecord::Migration[7.1]
def change
create_table :teams do |t|
t.timestamps
end
end
end

9
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_08_04_060112) do
ActiveRecord::Schema[7.1].define(version: 2024_08_10_054948) do
create_table "companies", force: :cascade do |t|
t.string "name"
t.string "id_number"
@@ -48,8 +48,6 @@ ActiveRecord::Schema[7.1].define(version: 2024_08_04_060112) do
t.integer "company_id", null: false
t.integer "customer_id", null: false
t.integer "place_id", null: false
t.string "title"
t.text "description"
t.datetime "start_time"
t.datetime "end_time"
t.datetime "created_at", null: false
@@ -59,6 +57,11 @@ ActiveRecord::Schema[7.1].define(version: 2024_08_04_060112) do
t.index ["place_id"], name: "index_reservations_on_place_id"
end
create_table "teams", force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
add_foreign_key "places", "companies"
add_foreign_key "reservations", "companies"
add_foreign_key "reservations", "customers"