The only way to use campaigns is to manually insert them in the database, which IMHO isn't very practical. We're going to change every piece of code that generates an Ahoy event and, in this case, the easiest way to change the Campaing model so it doesn't use Ahoy events is to simply remove it. Note we're keeping the database tables until we release a new version, just in case some Consul Democracy installations are using them. We'll inform in the release notes that we'll remove the campaigns table after the release, so existing installations using the `campaigns` table can move the data somewhere else before we remove the table.
13 lines
275 B
Ruby
13 lines
275 B
Ruby
FactoryBot.define do
|
|
factory :ahoy_event, class: "Ahoy::Event" do
|
|
id { SecureRandom.uuid }
|
|
time { DateTime.current }
|
|
sequence(:name) { |n| "Event #{n} type" }
|
|
end
|
|
|
|
factory :visit do
|
|
id { SecureRandom.uuid }
|
|
started_at { DateTime.current }
|
|
end
|
|
end
|