MishkaCmsMigration.Resources.Validations.SourceInstalled (Mishka CMS Migration v0.0.1)

Copy Markdown View Source

Refuses a run whose source names no installed source plugin (MishkaCmsMigration.Source.fetch/1), on its source field, so a run is never created for a source no job could read.

create :create do
  validate MishkaCmsMigration.Resources.Validations.SourceInstalled, before_action?: true
end

Run it before_action?, after the input is cleaned.