Fix broken migration that cannot access config
This commit is contained in:
parent
21091e914e
commit
b7de738866
|
@ -533,9 +533,10 @@ module StopTime::Models
|
||||||
|
|
||||||
class HourlyRateSupport < V 1.3 # :nodoc:
|
class HourlyRateSupport < V 1.3 # :nodoc:
|
||||||
def self.up
|
def self.up
|
||||||
|
config = Config.instance
|
||||||
add_column(Customer.table_name, :hourly_rate, :float,
|
add_column(Customer.table_name, :hourly_rate, :float,
|
||||||
:null => false,
|
:null => false,
|
||||||
:default => @config["hourly_rate"])
|
:default => config["hourly_rate"])
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
|
|
Loading…
Reference in New Issue