lib/generators/parole/templates/migration.rb in parole-0.1.1 vs lib/generators/parole/templates/migration.rb in parole-0.1.2
- old
+ new
@@ -8,9 +8,10 @@
t.timestamps
end
add_index :comments, [:commentable_type, :commentable_id, :role]
+ add_index :comments, [:commentable_type, :commentable_id]
end
def self.down
drop_table :comments
end