class NotificationsMigration < ActiveRecord::Migration<%= migration_version %> def change create_table :notifications do |t| t.references :target, polymorphic: true, index: true t.references :object, polymorphic: true, index: true t.string :type, default: NotificationHandler.configuration.default_type, null: false, index: true t.timestamps end end end