Created
May 1, 2015 17:36
-
-
Save uptownhr/8a204648bf0f05fb8aae to your computer and use it in GitHub Desktop.
unique index not working
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
Sequel.migration do | |
up do | |
create_table :locations do | |
primary_key :id | |
String :address | |
String :lat | |
String :long | |
DateTime :created_at | |
DateTime :updated_at | |
end | |
add_index :locations, [:address, :lat, :long], :unique => true | |
end | |
down do | |
drop_table :corporations | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
migration log