Normalizy
Rails template generator
- Adding a column with default value
- CRUD
Description
It's an opinated Rails' template generator.
install
Add the following code on your Gemfile
and run bundle install
:
gem 'templaty'
Migrations
There are many templates to create safe migrations for you. The strategies are based on the gem strong_migrations. It's recommended use the gem and just take advantage of these templates.
Adding a column with default value
rails g templaty:migrations:add_column \
--column=status \
--default=0 \
--null=false \
--rails_version=7.0 \
--table=discounts \
--type=integer
CRUD
rails g templaty:crud