about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/models/conversation.rb1
-rw-r--r--db/migrate/20200925035221_drop_conversations_public.rb7
-rw-r--r--db/schema.rb3
3 files changed, 8 insertions, 3 deletions
diff --git a/app/models/conversation.rb b/app/models/conversation.rb
index 0b9792091..6f776e052 100644
--- a/app/models/conversation.rb
+++ b/app/models/conversation.rb
@@ -7,7 +7,6 @@
 #  uri        :string
 #  created_at :datetime         not null
 #  updated_at :datetime         not null
-#  public     :boolean          default(FALSE), not null
 #  root       :string
 #
 
diff --git a/db/migrate/20200925035221_drop_conversations_public.rb b/db/migrate/20200925035221_drop_conversations_public.rb
new file mode 100644
index 000000000..e09f6014a
--- /dev/null
+++ b/db/migrate/20200925035221_drop_conversations_public.rb
@@ -0,0 +1,7 @@
+class DropConversationsPublic < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured do
+      remove_column :conversations, :public
+    end
+  end
+end
diff --git a/db/schema.rb b/db/schema.rb
index ab1fc6453..f7a21b6d3 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.define(version: 2020_09_23_000003) do
+ActiveRecord::Schema.define(version: 2020_09_25_035221) do
 
   # These are extensions that must be enabled in order to support this database
   enable_extension "plpgsql"
@@ -328,7 +328,6 @@ ActiveRecord::Schema.define(version: 2020_09_23_000003) do
     t.string "uri"
     t.datetime "created_at", null: false
     t.datetime "updated_at", null: false
-    t.boolean "public", default: false, null: false
     t.string "root"
     t.index ["uri"], name: "index_conversations_on_uri", unique: true
   end