Skip to content

Commit 0d71043

Browse files
authored
Merge pull request #5396 from brodyf42/5383_clean_up_partner_status_column_on_profile
[5383] Remove partner_status field from parnter_profiles table
2 parents 7b23914 + da64088 commit 0d71043

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

app/models/partners/profile.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
# new_client_times :string
3838
# no_social_media_presence :boolean
3939
# other_agency_type :string
40-
# partner_status :string default("pending")
4140
# pick_up_email :string
4241
# pick_up_name :string
4342
# pick_up_phone :string
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class RemovePartnerStatusFromPartnerProfiles < ActiveRecord::Migration[8.0]
2+
def change
3+
safety_assured { remove_column :partner_profiles, :partner_status, :string }
4+
end
5+
end

db/schema.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[8.0].define(version: 2025_08_11_094943) do
13+
ActiveRecord::Schema[8.0].define(version: 2025_09_13_173217) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "pg_catalog.plpgsql"
1616

@@ -524,7 +524,6 @@
524524
t.bigint "essentials_bank_id"
525525
t.text "application_data"
526526
t.integer "partner_id"
527-
t.string "partner_status", default: "pending"
528527
t.string "name"
529528
t.string "distributor_type"
530529
t.string "agency_type"

spec/factories/partners/profiles.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
# new_client_times :string
3838
# no_social_media_presence :boolean
3939
# other_agency_type :string
40-
# partner_status :string default("pending")
4140
# pick_up_email :string
4241
# pick_up_name :string
4342
# pick_up_phone :string

spec/models/partners/profile_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
# new_client_times :string
3838
# no_social_media_presence :boolean
3939
# other_agency_type :string
40-
# partner_status :string default("pending")
4140
# pick_up_email :string
4241
# pick_up_name :string
4342
# pick_up_phone :string

spec/system/partners/approval_process_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
let(:partner) { FactoryBot.create(:partner) }
7474

7575
before do
76-
partner.profile.update(website: '', facebook: '', twitter: '', instagram: '', no_social_media_presence: false, partner_status: 'pending')
76+
partner.profile.update(website: '', facebook: '', twitter: '', instagram: '', no_social_media_presence: false)
7777
login_as(partner_user)
7878
visit partner_user_root_path
7979
click_on 'My Profile'

0 commit comments

Comments
 (0)