about summary refs log tree commit diff
path: root/db/migrate/20200817003033_add_defaults_to_conversations.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200817003033_add_defaults_to_conversations.rb')
-rw-r--r--db/migrate/20200817003033_add_defaults_to_conversations.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20200817003033_add_defaults_to_conversations.rb b/db/migrate/20200817003033_add_defaults_to_conversations.rb
new file mode 100644
index 000000000..fc3c0ceee
--- /dev/null
+++ b/db/migrate/20200817003033_add_defaults_to_conversations.rb
@@ -0,0 +1,8 @@
+class AddDefaultsToConversations < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured do
+      change_column :conversations, :account_id, :bigint, default: nil
+      change_column :conversations, :root, :string, default: nil
+    end
+  end
+end