Sha256: e2c73977cfe9858f8b1514da0a168a5452b29fcb793c1bcc573d6ad6fa023b0a
Contents?: true
Size: 541 Bytes
Versions: 8
Compression:
Stored size: 541 Bytes
Contents
require 'earth/air/flight_distance_class_seat_class' FlightSeatClass.class_eval do data_miner do process "Ensure that FlightDistanceClassSeatClass is populated" do FlightDistanceClassSeatClass.run_data_miner! end process "Derive flight seat classes names from FlightDistanceClassSeatClass" do connection.select_values("SELECT DISTINCT seat_class_name FROM #{FlightDistanceClassSeatClass.quoted_table_name}").each do |seat_class_name| find_or_create_by_name seat_class_name end end end end
Version data entries
8 entries across 8 versions & 1 rubygems