You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the generator for a model under module results in inconsistent filename.
Reproduction Instruction
bundle exec rails g statesman:active_record_transition Game::Chess Game::ChessTransition
The error
The resulting filename would be 20220324024427_create_chess_transitions.rb
And the resulting class name would be class CreateGameChessTransitions < ActiveRecord::Migration[6.1]
Running this migration results in error:
rails aborted!
NameError: uninitialized constant CreateChessTransitions
Did you mean? CreateGameChessTransitions
Caused by:
NameError: uninitialized constant CreateChessTransitions
Did you mean? CreateGameChessTransitions
Expected outcome
The generated filename should be consistent with the classname.
20220324024427_create_game_chess_transitions.rb
The text was updated successfully, but these errors were encountered:
Description
Running the generator for a model under module results in inconsistent filename.
Reproduction Instruction
bundle exec rails g statesman:active_record_transition Game::Chess Game::ChessTransition
The error
The resulting filename would be
20220324024427_create_chess_transitions.rb
And the resulting class name would be
class CreateGameChessTransitions < ActiveRecord::Migration[6.1]
Running this migration results in error:
Expected outcome
The generated filename should be consistent with the classname.
20220324024427_create_game_chess_transitions.rb
The text was updated successfully, but these errors were encountered: