24 lines
521 B
Ruby
24 lines
521 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: home_top_settings
|
|
#
|
|
# id :integer not null, primary key
|
|
# user_id :integer
|
|
# top_type :string(255)
|
|
# top_id :integer
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_home_top_settings_on_top_type_and_top_id (top_type,top_id)
|
|
# index_home_top_settings_on_user_id (user_id)
|
|
#
|
|
|
|
class HomeTopSetting < ApplicationRecord
|
|
|
|
belongs_to :user
|
|
|
|
belongs_to :top, polymorphic: true
|
|
end
|