diff --git a/stoptime.rb b/stoptime.rb index 5a62e81..57edf2b 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -533,9 +533,10 @@ module StopTime::Models class HourlyRateSupport < V 1.3 # :nodoc: def self.up + config = Config.instance add_column(Customer.table_name, :hourly_rate, :float, :null => false, - :default => @config["hourly_rate"]) + :default => config["hourly_rate"]) end def self.down