Implement Tips Intervention

This commit is contained in:
Sebastian Serth
2021-11-14 16:57:33 +01:00
parent 18f05db138
commit 9079a0b15a
7 changed files with 47 additions and 18 deletions

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class CreateTipsIntervention < ActiveRecord::Migration[6.1]
def change
Intervention.find_or_create_by(name: 'TipsIntervention')
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_06_02_071834) do
ActiveRecord::Schema.define(version: 2021_11_14_145024) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_trgm"