diff --git a/db/migrate/20240819053931_add_teen_parent_eligibility.rb b/db/migrate/20240819053931_add_teen_parent_eligibility.rb new file mode 100644 index 00000000..898e7e3f --- /dev/null +++ b/db/migrate/20240819053931_add_teen_parent_eligibility.rb @@ -0,0 +1,13 @@ +class AddTeenParentEligibility < ActiveRecord::Migration[6.1] + def up + exec_query <<-SQL, "create tean parent eligibility", ["Teen Parent"] + INSERT INTO eligibilities (name, created_at, updated_at) + VALUES ($1, now(), now()) + ON CONFLICT (name) DO NOTHING; + SQL + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end diff --git a/db/schema.rb b/db/schema.rb index 5b9029a8..a8e876ea 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2024_08_04_222349) do +ActiveRecord::Schema.define(version: 2024_08_19_053931) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql"