cartodb/app/models/carto/automatic_geocoding.rb
2020-06-15 10:58:47 +08:00

10 lines
334 B
Ruby

require 'active_record'
module Carto
class AutomaticGeocoding < ActiveRecord::Base
has_many :geocodings, -> { order(:created_at) }
belongs_to :table, class_name: Carto::UserTable, inverse_of: :automatic_geocodings, foreign_key: :id
belongs_to :user, class_name: Carto::User, inverse_of: :automatic_geocodings
end
end