Sha256: 31585fff472638d1a3fd860d7974e93394af2a8e4f9f935afecb1ce5e4ac01a6
Contents?: true
Size: 971 Bytes
Versions: 62
Compression:
Stored size: 971 Bytes
Contents
# This migration comes from mailboxer_engine (originally 20131206080417) class AddMissingIndices < ActiveRecord::Migration[4.2] def change # We'll explicitly specify its name, as the auto-generated name is too long and exceeds 63 # characters limitation. add_index :mailboxer_conversation_opt_outs, [:unsubscriber_id, :unsubscriber_type], name: 'index_mailboxer_conversation_opt_outs_on_unsubscriber_id_type' add_index :mailboxer_conversation_opt_outs, :conversation_id add_index :mailboxer_notifications, :type add_index :mailboxer_notifications, [:sender_id, :sender_type] # We'll explicitly specify its name, as the auto-generated name is too long and exceeds 63 # characters limitation. add_index :mailboxer_notifications, [:notified_object_id, :notified_object_type], name: 'index_mailboxer_notifications_on_notified_object_id_and_type' add_index :mailboxer_receipts, [:receiver_id, :receiver_type] end end
Version data entries
62 entries across 48 versions & 2 rubygems