Sha256: ee4d1556f4b928587b7a3e72eedffe7043baee9bc1fecc277a6df0f9967029e4
Contents?: true
Size: 1.78 KB
Versions: 1
Compression:
Stored size: 1.78 KB
Contents
# create_table :transportation_route_segments do |t| # # t.string :internal_identifier # t.string :description # t.string :comments # # t.string :external_identifier # t.string :external_id_source # # t.integer :sequence # t.datetime :estimated_start # t.datetime :estimated_arrival # t.datetime :actual_start # t.datetime :actual_arrival # t.decimal :start_mileage, :precision => 8, :scale => 1 # t.decimal :end_mileage, :precision => 8, :scale => 1 # t.integer :fuel_used # t.decimal :miles_traveled, :precision => 8, :scale => 1 # # t.integer :transportation_route_id # t.integer :from_transportation_route_stop_id # t.integer :to_transportation_route_stop_id # # t.timestamps # end # # add_index :transportation_route_segments, :transportation_route_id, name: 'trans_route_seg_trans_route_id_idx' # add_index :transportation_route_segments, :from_transportation_route_stop_id, name: 'trans_route_seg_from_trans_stop_idx' # add_index :transportation_route_segments, :to_transportation_route_stop_id, name: 'trans_route_seg_to_trans_stop_idx' # class TransportationRouteSegment < ActiveRecord::Base attr_protected :created_at, :updated_at tracks_created_by_updated_by belongs_to :route, :class_name => "TransportationRoute", :foreign_key => "transportation_route_id" belongs_to :from_stop, :class_name => "TransportationRouteStop", :foreign_key => "from_transportation_route_stop_id" belongs_to :to_stop, :class_name => "TransportationRouteStop", :foreign_key => "to_transportation_route_stop_id" def to_data_hash to_hash(only: [:id, :internal_identifier, :description, :comments, :actual_start, :actual_arrival, :miles_traveled, :created_at, :updated_at]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_work_effort-4.2.0 | app/models/transportation_route_segment.rb |