Skip to content

v1.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Oct 17:04
· 546 commits to main since this release
dfd2e2f

New in 1.6.0 - Changes to Super Scaffolding

Previously Super Scaffolding was a two-step process. You would:

  1. Generate a model
  2. Generate a Super Scaffold

In 1.6.0 we've removed the first step, and now all you have to do is run Super Scaffolding. Bullet Train will generate a model migration for you with all the right data types.

For instance, to generate a Project scaffold you can now do just this:

bin/super-scaffold crud Project Team name:text_field
rake db:migrate

Previously you would have had to do this:

rails g model Project team:references name:string
bin/super-scaffold crud Project Team name:text_field
rake db:migrate

But now we generate that migration for you.

If you'd like to continue to generate your migrations by hand you're welcome to do that, and you can pass the --skip-migration-generation flag to the Super Scaffolding step.

rails g model Project team:references name:string
bin/super-scaffold crud Project Team name:text_field --skip-migration-generation
rake db:migrate

What's Changed

  • Run rails generate commands automatically when Super Scaffolding by @gazayas in #547
  • Move masamune ast dependency to using gems by @kaspth in #598
  • Bug fix for super scaffolding an address_field by @jagthedrummer in #600
  • Minitest::Spec of dust by @kaspth in #597
  • Version bump: minor - 1.6.0 by @github-actions in #601

Full Changelog: v1.5.2...v1.6.0