mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:29:35 +08:00
c68999e128
WARNING annotators out there, be to run bin/annotate on RAILS_ENV=test on a clean db
21 lines
618 B
Ruby
21 lines
618 B
Ruby
class ChildTheme < ActiveRecord::Base
|
|
belongs_to :parent_theme, class_name: 'Theme'
|
|
belongs_to :child_theme, class_name: 'Theme'
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: child_themes
|
|
#
|
|
# id :integer not null, primary key
|
|
# parent_theme_id :integer
|
|
# child_theme_id :integer
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_child_themes_on_child_theme_id_and_parent_theme_id (child_theme_id,parent_theme_id) UNIQUE
|
|
# index_child_themes_on_parent_theme_id_and_child_theme_id (parent_theme_id,child_theme_id) UNIQUE
|
|
#
|