Skip to content

Commit

Permalink
Merge pull request ManageIQ#67 from aljesusg/bug_showback_tiers
Browse files Browse the repository at this point in the history
Fix issue with showback_rate belongs and type of the data in steps let INFINITY
  • Loading branch information
gtanzillo authored Sep 18, 2017
2 parents 7e334b1 + 80a2bfb commit d4ccb97
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions db/migrate/20170918190738_issue_shorback_tiers.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class IssueShorbackTiers < ActiveRecord::Migration[5.0]
def up
rename_column :showback_tiers, :showback_rates_id, :showback_rate_id
change_column :showback_tiers, :tier_start_value, :float
change_column :showback_tiers, :tier_end_value, :float
end

def down
rename_column :showback_tiers, :showback_rate_id, :showback_rates_id
change_column :showback_tiers, :tier_start_value, :bigint
change_column :showback_tiers, :tier_end_value, :bigint
end
end
2 changes: 1 addition & 1 deletion db/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6026,7 +6026,7 @@ showback_tiers:
- step_time_unit
- step_time_value
- step_unit
- showback_rates_id
- showback_rate_id
showback_usage_types:
- id
- category
Expand Down

0 comments on commit d4ccb97

Please sign in to comment.