Project

templaty

0.0
No release in over a year
Rails template generator.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Normalizy

CI Gem Version Maintainability Coverage Sponsor

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

References