Chatwoot/db/migrate/20200504144712_add_index_on_notification_subscriptions.rb

7 lines
230 B
Ruby
Raw Normal View History

class AddIndexOnNotificationSubscriptions < ActiveRecord::Migration[6.0]
def change
add_column :notification_subscriptions, :identifier, :string
add_index :notification_subscriptions, :identifier, unique: true
end
end