thoughtbot/data_customs
Auf GitHub ansehenAllow base class for migrations to be configurable
Open
#1 geöffnet am 5. Sept. 2025
good first issue
Repository-Metriken
- Stars
- (7 Stars)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
Currently, all data migrations inherit from DataCustoms::Migration. It can be useful to configure that base class to something like ApplicationDataMigration to add shared behavior. A rough sketch of what it could look like:
class ApplicationDataMigration
include Rspec::Matchers
end
DataCustoms.configure do |config|
config.base_class = "ApplicationDataMigration"
end