thoughtbot/data_customs

Allow base class for migrations to be configurable

Open

#1 创建于 2025年9月5日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Ruby (1 fork)auto 404
good first issue

仓库指标

Star
 (7 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南