Last active
August 14, 2020 17:26
-
-
Save walshyb/37cde50b6c5807963168451dcebe2d4b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# db/migrate/20200804153022_add_primary_to_email_addresses | |
class AddPrimaryToEmailAddresses < ActiveRecord::Migration[6.0] | |
def change | |
add_column :email_addresses, :primary, :boolean, default: false | |
add_index :email_addresses, :primary | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment