Skip to content

Commit

Permalink
Section: Drop the publicity_level column, since it is dead
Browse files Browse the repository at this point in the history
  • Loading branch information
zspencer authored and rosschapman committed Oct 23, 2023
1 parent 2b26f70 commit 353a656
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/models/room.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# A Room in Convene acts as a gathering place.
class Room < ApplicationRecord
self.ignored_columns += [:publicity_level]
# The space whose settings govern the default publicity and access controls for the Room.
belongs_to :space, inverse_of: :rooms
location(parent: :space)
Expand Down
7 changes: 7 additions & 0 deletions db/migrate/20231005005905_drop_publicity_level_from_rooms.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class DropPublicityLevelFromRooms < ActiveRecord::Migration[7.0]
def change
safety_assured do
remove_column :rooms, :publicity_level, type: :string, default: :listed
end
end
end
3 changes: 1 addition & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_08_14_180326) do
ActiveRecord::Schema[7.0].define(version: 2023_10_05_005905) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
Expand Down Expand Up @@ -252,7 +252,6 @@
t.string "name"
t.string "slug"
t.string "access_level", default: "public", null: false
t.string "publicity_level", default: "listed", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.uuid "space_id"
Expand Down

0 comments on commit 353a656

Please sign in to comment.