2022-06-14 11:07:02 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-24 04:38:42 -04:00
|
|
|
Fabricator(:query, from: DiscourseDataExplorer::Query) do
|
|
|
|
name { sequence(:name) { |i| "cat#{i}" } }
|
|
|
|
description { sequence(:desc) { |i| "description #{i}" } }
|
|
|
|
sql { sequence(:sql) { |i| "SELECT * FROM users limit #{i}" } }
|
2022-06-14 11:07:02 -04:00
|
|
|
user
|
|
|
|
end
|
|
|
|
|
2023-03-24 04:38:42 -04:00
|
|
|
Fabricator(:query_group, from: DiscourseDataExplorer::QueryGroup) do
|
2022-06-14 11:07:02 -04:00
|
|
|
query
|
|
|
|
group
|
|
|
|
end
|