Skip to content

Commit

Permalink
Remove ready_for_review column
Browse files Browse the repository at this point in the history
It's not being used anywhere so we can remove this column.
  • Loading branch information
thomasleese committed Nov 8, 2023
1 parent 7b679a7 commit 1d1e0f3
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 48 deletions.
29 changes: 14 additions & 15 deletions app/models/professional_standing_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
#
# Table name: professional_standing_requests
#
# id :bigint not null, primary key
# expired_at :datetime
# location_note :text default(""), not null
# ready_for_review :boolean default(FALSE), not null
# received_at :datetime
# requested_at :datetime
# review_note :string default(""), not null
# review_passed :boolean
# reviewed_at :datetime
# verified_at :datetime
# verify_note :text default(""), not null
# verify_passed :boolean
# created_at :datetime not null
# updated_at :datetime not null
# assessment_id :bigint not null
# id :bigint not null, primary key
# expired_at :datetime
# location_note :text default(""), not null
# received_at :datetime
# requested_at :datetime
# review_note :string default(""), not null
# review_passed :boolean
# reviewed_at :datetime
# verified_at :datetime
# verify_note :text default(""), not null
# verify_passed :boolean
# created_at :datetime not null
# updated_at :datetime not null
# assessment_id :bigint not null
#
# Indexes
#
Expand Down
1 change: 0 additions & 1 deletion config/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@
- expired_at
- id
- location_note
- ready_for_review
- received_at
- requested_at
- review_note
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class RemoveReadyForReviewFromProfessionalStandingRequests < ActiveRecord::Migration[
7.1
]
def change
remove_column :professional_standing_requests,
:ready_for_review,
:boolean,
null: false,
default: false
end
end
3 changes: 1 addition & 2 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 14 additions & 15 deletions spec/factories/professional_standing_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
#
# Table name: professional_standing_requests
#
# id :bigint not null, primary key
# expired_at :datetime
# location_note :text default(""), not null
# ready_for_review :boolean default(FALSE), not null
# received_at :datetime
# requested_at :datetime
# review_note :string default(""), not null
# review_passed :boolean
# reviewed_at :datetime
# verified_at :datetime
# verify_note :text default(""), not null
# verify_passed :boolean
# created_at :datetime not null
# updated_at :datetime not null
# assessment_id :bigint not null
# id :bigint not null, primary key
# expired_at :datetime
# location_note :text default(""), not null
# received_at :datetime
# requested_at :datetime
# review_note :string default(""), not null
# review_passed :boolean
# reviewed_at :datetime
# verified_at :datetime
# verify_note :text default(""), not null
# verify_passed :boolean
# created_at :datetime not null
# updated_at :datetime not null
# assessment_id :bigint not null
#
# Indexes
#
Expand Down
29 changes: 14 additions & 15 deletions spec/models/professional_standing_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
#
# Table name: professional_standing_requests
#
# id :bigint not null, primary key
# expired_at :datetime
# location_note :text default(""), not null
# ready_for_review :boolean default(FALSE), not null
# received_at :datetime
# requested_at :datetime
# review_note :string default(""), not null
# review_passed :boolean
# reviewed_at :datetime
# verified_at :datetime
# verify_note :text default(""), not null
# verify_passed :boolean
# created_at :datetime not null
# updated_at :datetime not null
# assessment_id :bigint not null
# id :bigint not null, primary key
# expired_at :datetime
# location_note :text default(""), not null
# received_at :datetime
# requested_at :datetime
# review_note :string default(""), not null
# review_passed :boolean
# reviewed_at :datetime
# verified_at :datetime
# verify_note :text default(""), not null
# verify_passed :boolean
# created_at :datetime not null
# updated_at :datetime not null
# assessment_id :bigint not null
#
# Indexes
#
Expand Down

0 comments on commit 1d1e0f3

Please sign in to comment.