From 9f978678842612a61ab151faaf1122f6671325c4 Mon Sep 17 00:00:00 2001 From: rwegrzyniak <53302541+rwegrzyniak@users.noreply.github.com> Date: Mon, 19 Oct 2020 12:04:41 +0200 Subject: [PATCH] Changed migration class name to work with zeitwerk --- lib/generators/active_record/templates/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/active_record/templates/migration.rb b/lib/generators/active_record/templates/migration.rb index 227ccab..ad97bdc 100644 --- a/lib/generators/active_record/templates/migration.rb +++ b/lib/generators/active_record/templates/migration.rb @@ -1,4 +1,4 @@ -class AASMCreate<%= table_name.camelize %> < ActiveRecord::Migration[<%= ActiveRecord::VERSION::STRING.to_f %>] +class AasmCreate<%= table_name.camelize %> < ActiveRecord::Migration[<%= ActiveRecord::VERSION::STRING.to_f %>] def change create_table(:<%= table_name %>) do |t| t.string :<%= column_name %>