Fix broken migration that cannot access config

This commit is contained in:
Paul van Tilburg 2014-10-18 21:26:14 +02:00
parent 21091e914e
commit b7de738866
1 changed files with 2 additions and 1 deletions

View File

@ -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