I want to use the generate and migration commands even in applications that don't use rails.
The generate command may not be possible because the folder structure is different from rails, but the migration command wants to use the folder structure to match the rails application.

  • Answer # 1

    Developed using a gem called standalone_migrations
    I didn't use generate, but I'm happy because migration worked fine.

  • Answer # 2

    These are Rails commands, so if you want to use those commands without using Rails
    Create your own framework. Please do your best.

Related articles