Created
January 14, 2016 21:19
-
-
Save epintos/f3ff937c1f680e6227d0 to your computer and use it in GitHub Desktop.
AddNameDescriptionDateUniqueIndexToDocument
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 AddNameDescriptionDateUniqueIndexToDocument < ActiveRecord::Migration | |
def change | |
add_index :document, [:name, :description, :date], unique: true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment