class <%= migration_class_name %> < ActiveRecord::Migration

  def self.up
<% counter_cache_columns.each do |column| %>
    add_column :<%= table_name %>, :<%= column %>, :integer, :null => false, :default => 0
<% end %>
  end

  def self.down
<% counter_cache_columns.each do |column| %>
    remove_column :<%= table_name %>, :<%= column %>
<% end %>
  end

end

class <%= migration_class_name %> < ActiveRecord::Migration
  def self.up<% counter_cache_columns.each do |column| %>
    add_column :<%= table_name %>, :<%= column %>, :integer, null: false, default:  0
<% end %>  end

  def self.down<% counter_cache_columns.each do |column| %>
    remove_column :<%= table_name %>, :<%= column %>
<% end %>  end
end

Change generated migration files to use new hash syntax
Change generated migration files to use new hash syntax

Because it's almost 2018. Fixes #203
