lib/generators/paperclip/templates/paperclip_migration.rb.erb in kt-paperclip-4.4.0 vs lib/generators/paperclip/templates/paperclip_migration.rb.erb in kt-paperclip-5.4.0
- old
+ new
@@ -1,5 +1,5 @@
-class <%= migration_class_name %> < ActiveRecord::Migration
+class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
def self.up
change_table :<%= table_name %> do |t|
<% attachment_names.each do |attachment| -%>
t.attachment :<%= attachment %>
<% end -%>