Displaying 1 result from an estimated 1 matches for "costfactor".
Did you mean:
postfactor
2009 Nov 04
0
The error occurred while evaluating nil.prefetch_primary_key
...class CreateConnectionCosts < ActiveRecord::Migration
def self.up
create_table :connection_costs do |t|
t.decimal :cost ,:precision=>10,:scale=>4
,:default=>100.0 # absolute Costs
t.decimal :cost_factor ,:precision=>10,:scale=>4 ,:default=>1.0
# CostFactor -> totalCosts = CostFactor * absCosts
t.references :connection
# Link to an ''Connection''
t.references :project
# Link to an ''Project''
t.references :way_search_run
# Link to an ''WaySearchRun''
t.timestamps
end
a...