Created
October 12, 2018 13:24
-
-
Save tom-lord/3c0b21e3707c04287a7a138f344a5a6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddPartialIndexOnDealershipIdAndExpiredAtToLeaseDeals < ActiveRecord::Migration[5.2] | |
def change | |
add_index :lease_deals, %i[dealership_id expired_at], where: 'expired_at IS NULL', algorithm: :concurrently | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment