Skip to content

Release 0.4.0

Latest
Compare
Choose a tag to compare
@keshavbiswa keshavbiswa released this 10 Nov 14:53

Version 0.4.0

New Features

Added HasAndBelongsToMany Association support

You can now add has_and_belongs_to_many associations to your seedie.yml file:

has_and_belongs_to_many:
  posts:
    count: 5
    attributes:
      title: "{{Faker::Lorem.sentence}}"
      body: "{{Faker::Lorem.paragraph}}"

Added the ability to generate nested BelongsTo Associations

Before, Models had no ability to add assocations to the child_model.

parent_model:
  attributes:
    some_attribute: 'hello'
  associations:
    has_many:
      child_model: 2

Now you can add associations to the child_model:

parent_model:
  attributes:
    some_attribute: 'hello'
  associations:
    has_many:
      child_model:
        attributes:
          title: 'some title'
        associations:
          belongs_to:
            another_parent_model: 'random'

Enhancements

Complete Rubocop Integration with CI

Added Zeitwerk Support

Added Rails 7.1 Support

New Contributors

Full Changelog: 0.3.0...0.4.0