Skip to content

Commit

Permalink
the migration file might help
Browse files Browse the repository at this point in the history
  • Loading branch information
David Maloney authored and David Maloney committed Jan 12, 2015
1 parent e923af2 commit 48ef0e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20150109172618_add_index_to_service.rb
@@ -0,0 +1,5 @@
class AddIndexToService < ActiveRecord::Migration
def change
add_index :services, [:host_id, :port, :proto], unique: true
end
end

0 comments on commit 48ef0e5

Please sign in to comment.