Skip to content

Commit

Permalink
remove allow revenue overflow from sow
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiomagalhaes committed Jan 24, 2024
1 parent e5df064 commit 6e11fca
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/models/statement_of_work.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Table name: statement_of_works
#
# id :bigint not null, primary key
# allow_revenue_overflow :boolean default(FALSE), not null
# contract_model_type :string
# end_date :datetime
# hour_delivery_schedule :string
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

class RemoveAllowRevenueOverflowFromStatementOfWork < ActiveRecord::Migration[7.0]
def change
remove_column :statement_of_works, :allow_revenue_overflow, :boolean
end
end
4 changes: 2 additions & 2 deletions db/schema.rb

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

2 changes: 0 additions & 2 deletions spec/factories/statement_of_works.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Table name: statement_of_works
#
# id :bigint not null, primary key
# allow_revenue_overflow :boolean default(FALSE), not null
# contract_model_type :string
# end_date :datetime
# hour_delivery_schedule :string
Expand Down Expand Up @@ -36,7 +35,6 @@
start_date { Time.zone.today - 6.months }
end_date { Time.zone.today + 6.months }
name { FFaker::Lorem.sentence }
allow_revenue_overflow { false }

trait :with_maintenance do
model { 'maintenance' }
Expand Down
1 change: 0 additions & 1 deletion spec/models/statement_of_work_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Table name: statement_of_works
#
# id :bigint not null, primary key
# allow_revenue_overflow :boolean default(FALSE), not null
# contract_model_type :string
# end_date :datetime
# hour_delivery_schedule :string
Expand Down

0 comments on commit 6e11fca

Please sign in to comment.