diff --git a/db/migrate/20160427095019_create_direct_debit_mandates_from_direct_debit_field.rb b/db/migrate/20160427095019_create_direct_debit_mandates_from_direct_debit_field.rb deleted file mode 100644 index 5e64a6102d..0000000000 --- a/db/migrate/20160427095019_create_direct_debit_mandates_from_direct_debit_field.rb +++ /dev/null @@ -1,20 +0,0 @@ -class CreateDirectDebitMandatesFromDirectDebitField < ActiveRecord::Migration - def up - LegalEntity.where(direct_debit: true).each do |user| - creator = CreatesDirectDebitMandate.new(user) - mandate = creator.create - - # Change mandate creation date to approximate date of our SEPA mandate changeover - time = [Time.new(2015, 3, 1), user.created_at].max - - mandate.created_at = time - mandate.save - - user.update_fastbill_profile - end - end - - def down - DirectDebitMandate.destroy_all - end -end diff --git a/db/schema.rb b/db/schema.rb index a64427011f..93c46e3c5d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20160427095019) do +ActiveRecord::Schema.define(version: 20160408225826) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql"