Files
codeocean/db/migrate/20211114145024_create_tips_intervention.rb
Sebastian Serth 6c44ffbd5c Fix missing/incorrect Model specifications in migrations
We need to define the required models within the migration (not below) to work reliably.
2024-07-04 11:02:10 +02:00

11 lines
223 B
Ruby

# frozen_string_literal: true
class CreateTipsIntervention < ActiveRecord::Migration[6.1]
class Intervention < ApplicationRecord
end
def change
Intervention.find_or_create_by(name: 'TipsIntervention')
end
end