Skip to content

Commit

Permalink
Changed migration class name to work with zeitwerk
Browse files Browse the repository at this point in the history
  • Loading branch information
rwegrzyniak authored and Anil Kumar Maurya committed Jun 25, 2021
1 parent 8ba44d6 commit 9f97867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/active_record/templates/migration.rb
Original file line number Diff line number Diff line change
@@ -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 %>

0 comments on commit 9f97867

Please sign in to comment.