Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 2.77 KB

CHANGELOG.md

File metadata and controls

52 lines (42 loc) · 2.77 KB

0.0.6

  • Removes the Rails.env check in the Taggable module.
    • This was a holdover from a previous project and shouldn't have been included here. We have Penman.enable and Penman.disable for this stuff.
  • Major change

0.1.6

  • Adds support for custom seed file formatting via an .erb. file.
  • RecordTag is now wrapped in the Penman module.
  • seed_method_name config setting has been removed as the erb solution is better.
  • add proper versioning
  • pull request

0.2.6

  • Adds Penman.enabled?
  • Adds configuration for the file_name_formatter method, allowing users to format their file names as they see fit.
  • Removes Penman.seed_path and Penman.default_candidate_key as these can be easily accessed through Penman.config.*
  • pull request

0.2.7

  • Fix bug for a case where a relation is defined between two models where the foreign key is not the primary key.
  • Thanks to @jayvan for this fix.
  • pull request

0.2.8

  • Adds back a check printed in the seeds files that allow the seeds to be safely run in environments where they were generated.
  • pull request

0.2.9

  • Fix issue 5
  • Generate the seed order tree at seed generation time, not when the models are loaded. The issue was caused when the include Taggable line in the model was above any belongs_to: association. When the module is included the model is registered and ordered via a tree with RecordTags. If the belongs_to relation isn't setup yet, this ordering can be incorrect. By generating the seed order at seed generation time, we allow the models time to be fully setup before evaluating their relations.
  • pull request

0.3.9

  • Adds the after_generate configurable callback that is to be used to add generated seeds to a migrations table of the user's choice.
  • pull request

0.4.9

  • Adds an optional record validity check prior to seeds.
  • pull request

0.4.10

  • Encode strings with .inspect, allowing for special characters in the strings to be escaped.
  • pull request

0.5.10

  • relax rails constraint, allowing rails 5 apps to use the gem
  • direct users to put the configuration in initializers
  • pull request (thanks @nearlyfreeapps)

0.6.10

  • Add functionality for generating seeds only for specific models (thanks @lyrebird)
  • pull request