generated from DFE-Digital/govuk-rails-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CPDLP-3814] remove NPQLeadProvider model and table
- Loading branch information
Showing
25 changed files
with
28 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
89 changes: 0 additions & 89 deletions
89
app/serializers/finance/npq/assurance_report/csv_serializer.rb
This file was deleted.
Oops, something went wrong.
180 changes: 0 additions & 180 deletions
180
app/services/oneoffs/npq/migrate_declarations_between_statements.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
db/migrate/20241218170200_drop_table_npq_lead_providers.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
class DropTableNPQLeadProviders < ActiveRecord::Migration[7.1] | ||
def up | ||
remove_foreign_key :npq_lead_providers, :cpd_lead_providers | ||
drop_table :npq_lead_providers | ||
end | ||
|
||
def down | ||
create_table :npq_lead_providers, id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| | ||
t.text :name, null: false | ||
t.datetime :created_at, null: false | ||
t.datetime :updated_at, null: false | ||
t.uuid :cpd_lead_provider_id | ||
t.boolean :vat_chargeable, default: true | ||
|
||
t.index :cpd_lead_provider_id, name: "index_npq_lead_providers_on_cpd_lead_provider_id" | ||
end | ||
|
||
add_foreign_key :npq_lead_providers, :cpd_lead_providers | ||
end | ||
end |
Oops, something went wrong.