Sha256: b36ed5eb37f0377f167fc991458ef85abdb50b37ba8a48c90caf96fe2eb0fe1e
Contents?: true
Size: 893 Bytes
Versions: 6
Compression:
Stored size: 893 Bytes
Contents
class AddMissingIndices < ActiveRecord::Migration 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
6 entries across 6 versions & 1 rubygems