20190728084117_remove_uri_from_conversations.rb 293 B

123456789101112
  1. # frozen_string_literal: true
  2. class RemoveUriFromConversations < ActiveRecord::Migration[5.2]
  3. def up
  4. safety_assured { remove_column :conversations, :uri, :string }
  5. end
  6. def down
  7. add_column :conversations, :uri, :string
  8. add_index :conversations, :uri, unique: true
  9. end
  10. end