lib/generators/metka/strategies/view/templates/migration.rb.erb in metka-0.1.1 vs lib/generators/metka/strategies/view/templates/migration.rb.erb in metka-0.1.2
- old
+ new
@@ -9,10 +9,10 @@
( <%= source_column_name %> ) AS <%= source_column_name.singularize %>_name,
COUNT ( * ) AS taggings_count
FROM
<%= source_table_name %>
GROUP BY
- name;
+ <%= source_column_name.singularize %>_name;
SQL
end
def down
execute <<-SQL