From b7de738866a1f4b9564430a214f5c1bd73782f29 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 18 Oct 2014 21:26:14 +0200 Subject: [PATCH] Fix broken migration that cannot access config --- stoptime.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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