Sha256: 445cd3c81a9dd2f61dcf53167e96e7a339d3ba35ca403f1854ac854356e121c2

Contents?: true

Size: 187 Bytes

Versions: 16

Compression:

Stored size: 187 Bytes

Contents

class FuelPrice < ActiveRecord::Base
  set_primary_key :name
  
  belongs_to :fuel_type, :foreign_key => 'name' # weird
  
  col :name
  col :price, :type => :float
  col :price_units
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
earth-0.11.7 lib/earth/fuel/fuel_price.rb
earth-0.11.6 lib/earth/fuel/fuel_price.rb
earth-0.11.5 lib/earth/fuel/fuel_price.rb
earth-0.11.4 lib/earth/fuel/fuel_price.rb
earth-0.11.3 lib/earth/fuel/fuel_price.rb
earth-0.11.2 lib/earth/fuel/fuel_price.rb
earth-0.11.1 lib/earth/fuel/fuel_price.rb
earth-0.11.0 lib/earth/fuel/fuel_price.rb
earth-0.7.0 lib/earth/fuel/fuel_price.rb
earth-0.6.6 lib/earth/fuel/fuel_price.rb
earth-0.6.5 lib/earth/fuel/fuel_price.rb
earth-0.6.4 lib/earth/fuel/fuel_price.rb
earth-0.6.3 lib/earth/fuel/fuel_price.rb
earth-0.6.2 lib/earth/fuel/fuel_price.rb
earth-0.6.1 lib/earth/fuel/fuel_price.rb
earth-0.6.0 lib/earth/fuel/fuel_price.rb