mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-03-07 18:09:16 +00:00
This commit updates the plugin to the latest guidelines, as shown in discourse-plugin-skeleton, which involves moving a lot of the code to dedicated files, use proper namespaces, use the autoloader as much as possible, etc.
13 lines
252 B
Ruby
13 lines
252 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ::DiscourseDataExplorer
|
|
class QueryGroup < ActiveRecord::Base
|
|
self.table_name = "data_explorer_query_groups"
|
|
|
|
belongs_to :query
|
|
belongs_to :group
|
|
|
|
has_many :bookmarks, as: :bookmarkable
|
|
end
|
|
end
|