lib/generators/partisan/templates/migration.rb in partisan-0.5 vs lib/generators/partisan/templates/migration.rb in partisan-0.5.1

- old
+ new

@@ -7,10 +7,10 @@ t.timestamps null: false end add_index :follows, ['follower_id', 'follower_type'], name: 'index_partisan_followers' add_index :follows, ['followable_id', 'followable_type'], name: 'index_partisan_followables' - add_index :follows, ['follower_id', 'follower_type', 'followable_id', 'follower_type'], name: 'index_partisan_unique_follow', unique: true + add_index :follows, ['follower_id', 'follower_type', 'followable_id', 'followable_type'], name: 'index_partisan_unique_follow', unique: true end def down drop_table :follows end