master
1class AddUniqueConstraintToYelpId < ActiveRecord::Migration
2 def change
3 remove_index :gyms, :yelp_id
4 add_index :gyms, :yelp_id, unique: true
5 end
6end