diff --git a/app/models/room.rb b/app/models/room.rb index 5620e78113..7267a0df81 100644 --- a/app/models/room.rb +++ b/app/models/room.rb @@ -30,7 +30,6 @@ class Room < ApplicationRecord validates :name, presence: true validates :friendly_id, presence: true, uniqueness: true validates :meeting_id, presence: true, uniqueness: true - # validates :voice_bridge, uniqueness: true validates :presentation, content_type: Rails.configuration.uploads[:presentations][:formats], size: { less_than: Rails.configuration.uploads[:presentations][:max_size] } diff --git a/db/schema.rb b/db/schema.rb index 654f0972ed..71ed36b4c5 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2023_12_18_154727) do +ActiveRecord::Schema[7.1].define(version: 2023_07_05_183747) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql" @@ -43,9 +43,6 @@ t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true end - create_table "data_migrations", primary_key: "version", id: :string, force: :cascade do |t| - end - create_table "formats", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| t.uuid "recording_id" t.string "recording_type", null: false @@ -136,7 +133,7 @@ t.index ["friendly_id"], name: "index_rooms_on_friendly_id", unique: true t.index ["meeting_id"], name: "index_rooms_on_meeting_id", unique: true t.index ["user_id"], name: "index_rooms_on_user_id" - t.index ["voice_bridge"], name: "index_rooms_on_voice_bridge", unique: true + t.index ["voice_bridge"], name: "index_rooms_on_voice_bridge" end create_table "rooms_configurations", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| diff --git a/spec/models/room_spec.rb b/spec/models/room_spec.rb index c5b7292c3a..cb695a6ba8 100644 --- a/spec/models/room_spec.rb +++ b/spec/models/room_spec.rb @@ -93,13 +93,6 @@ expect(room.voice_bridge).to be_present end end - - it 'prevents duplicate voice_briges' do - duplicate_room = create(:room) - unless Rails.application.config.voice_bridge_phone_number.nil? - expect { duplicate_room.voice_bridge = room.voice_bridge }.to change { duplicate_room.valid? }.to false - end - end end end