lib/generators/emotions/templates/migration.rb in emotions-0.1.6 vs lib/generators/emotions/templates/migration.rb in emotions-0.1.7

- old
+ new

@@ -13,10 +13,10 @@ t.timestamps end add_index :emotions, [:emotional_type, :emotional_id, :emotive_type, :emotive_id, :emotion], unique: true, name: 'index_emotions_by_emotional_emotive_and_emotion' add_index :emotions, [:emotional_type, :emotional_id, :emotive_type, :emotive_id], name: 'index_emotions_by_emotional_and_emotive' - add_index :emotions, [:emotive_type, :emotive_id, :emotion], name: 'index_emotions_by_emotional_and_emotive' + add_index :emotions, [:emotive_type, :emotive_id, :emotion], name: 'index_emotions_by_emotive' end def down drop_table :emotions end