Fix tests after workflow simplication

This commit is contained in:
Mathieu Magnin 2017-02-27 11:56:26 +01:00
parent 10add61bd1
commit 4cc6aedfb9
15 changed files with 9 additions and 76 deletions

View file

@ -1,9 +0,0 @@
class InitMailValidatedForAllProcedure < ActiveRecord::Migration[5.0]
def change
Procedure.all.each do |p|
unless p.mail_validated
p.mail_templates << MailValidated.create
end
end
end
end

View file

@ -0,0 +1,5 @@
class DeleteAllMailValidatedInDb < ActiveRecord::Migration[5.0]
def change
MailTemplate.where(type: "MailValidated").delete_all
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: 20170221143909) do
ActiveRecord::Schema.define(version: 20170223170808) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"