The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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