thoughtbot/data_customs

Allow base class for migrations to be configurable

Open

#1 opened on Sep 5, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Ruby (1 fork)auto 404
good first issue

Repository metrics

Stars
 (7 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide