lib/generators/index/templates/index_migration.rb in gindex-0.1.1 vs lib/generators/index/templates/index_migration.rb in gindex-0.1.2
- old
+ new
@@ -1,5 +1,5 @@
-class <%= migration_class_name %> < ActiveRecord::Migration
+class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
disable_ddl_transaction!
def change
add_index <%= table.to_sym.inspect %>, <%= columns.map(&:to_sym).inspect %>, algorithm: :concurrently
end