Top Level Namespace
Defined Under Namespace
Modules: Earth Classes: AirConditionerUse, Aircraft, AircraftClass, AircraftManufacturer, Airline, Airport, AutomobileFuel, AutomobileFuelType, AutomobileMake, AutomobileMakeFleetYear, AutomobileMakeModel, AutomobileMakeModelYear, AutomobileMakeModelYearVariant, AutomobileMakeYear, AutomobileSizeClass, AutomobileSizeClassYear, AutomobileTypeFuelAge, AutomobileTypeFuelControl, AutomobileTypeFuelYear, AutomobileTypeFuelYearAge, AutomobileTypeFuelYearControl, AutomobileTypeYear, Breed, BreedGender, BusClass, BusFuel, BusFuelControl, BusFuelYearControl, Carrier, CarrierMode, CensusDivision, CensusRegion, ClimateDivision, ClothesMachineUse, ComputationPlatform, Country, DataCenterCompany, DietClass, DishwasherUse, EgridRegion, EgridSubregion, FlightDistanceClass, FlightFuelType, FlightSeatClass, FlightSegment, FoodGroup, Fuel, FuelPrice, FuelType, FuelYear, Gender, GreenhouseGas, Industry, IndustryProduct, IndustryProductLine, IndustrySector, LodgingClass, Merchant, MerchantCategory, MerchantCategoryIndustry, PetroleumAdministrationForDefenseDistrict, ProductLine, ProductLineIndustryProduct, RailClass, ResidenceAppliance, ResidenceClass, ResidenceFuelPrice, ResidenceFuelType, ResidentialEnergyConsumptionSurveyResponse, Sector, ServerType, ServerTypeAlias, ShipmentMode, Species, State, Urbanity, ZipCode
Instance Method Summary collapse
Instance Method Details
#INSERT_IGNORE(cmd) ⇒ Object
165 166 167 168 169 170 171 172 |
# File 'lib/earth.rb', line 165 def INSERT_IGNORE(cmd) if ActiveRecord::Base.connection.adapter_name.downcase == 'sqlite' prefix = 'INSERT' else prefix = 'INSERT IGNORE' end ActiveRecord::Base.connection.execute "#{prefix} #{cmd}" end |