lib/generators/partisan/templates/migration.rb in partisan-0.1.1 vs lib/generators/partisan/templates/migration.rb in partisan-0.2
- old
+ new
@@ -5,11 +5,11 @@
t.references :follower, polymorphic: true
t.timestamps
end
- add_index :follows, ["follower_id", "follower_type"], name: "fk_follows"
- add_index :follows, ["followable_id", "followable_type"], name: "fk_followables"
+ add_index :follows, ['follower_id', 'follower_type'], name: 'index_partisan_followers'
+ add_index :follows, ['followable_id', 'followable_type'], name: 'index_partisan_followables'
end
def down
drop_table :follows
end