Rails has these generators that we can use to customize every new app that we create based on our requirements.
Suppose, we want to create a new Rails app with Postgresql DB instead of the default sqlite3, then we can use the
Similarly, we could also use these generator options to remove something we don’t want.
For example, if we want to write our tests using
RSpec and do not want the unnecessary
test directory from getting created.
We could use the
In Rails 6, the option webpacker got replaced with
Rails will now allow
--js as a new alias along with
So, if we need to create apps with
We should also be able to use
--skip-js alias instead of
js alias more than
Note: The enhancement is yet to be released in the official Rails version