Add GeoEventLog model

parent cb6c7cbe
class GeoEventLog < ActiveRecord::Base
belongs_to :push_event, class_name: 'GeoPushEvent', foreign_key: 'push_event_id'
end
......@@ -10,6 +10,6 @@
# end
#
ActiveSupport::Inflector.inflections do |inflect|
inflect.uncountable %w(award_emoji project_statistics project_registry file_registry system_note_metadata)
inflect.uncountable %w(award_emoji project_statistics system_note_metadata geo_event_log project_registry file_registry)
inflect.acronym 'EE'
end
require 'rails_helper'
RSpec.describe GeoEventLog, type: :model do
describe 'relationships' do
it { is_expected.to belong_to(:push_event).class_name('GeoPushEvent').with_foreign_key('push_event_id') }
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment