2019-05-03 06:17:27 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-04-25 21:14:05 +08:00
|
|
|
class CategoryCustomField < ActiveRecord::Base
|
2023-12-15 01:06:21 +08:00
|
|
|
include CustomField
|
|
|
|
|
2014-04-25 21:14:05 +08:00
|
|
|
belongs_to :category
|
|
|
|
end
|
|
|
|
|
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: category_custom_fields
|
|
|
|
#
|
2014-05-08 14:45:49 +08:00
|
|
|
# id :integer not null, primary key
|
|
|
|
# category_id :integer not null
|
|
|
|
# name :string(256) not null
|
|
|
|
# value :text
|
2014-08-27 13:19:25 +08:00
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
2014-04-25 21:14:05 +08:00
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
|
|
|
# index_category_custom_fields_on_category_id_and_name (category_id,name)
|
|
|
|
#
|