BathHacked/energy-sparks

View on GitHub
app/models/activity_timing.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# == Schema Information
#
# Table name: activity_timings
#
#  created_at    :datetime         not null
#  id            :bigint(8)        not null, primary key
#  include_lower :boolean          default(FALSE)
#  name          :string           not null
#  position      :integer          default(0)
#  updated_at    :datetime         not null
#

class ActivityTiming < ApplicationRecord
  has_and_belongs_to_many :activity_types, join_table: :activity_type_timings
end