Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AddEmailIndexToMoviegoers < ActiveRecord::Migration
- def up
- add_index 'moviegoers', 'email', :unique => true
- # :unique is optional - see text for important warning!
- add_index 'moviegoers', 'zip'
- end
- end
Add Comment
Please, Sign In to add comment