Fix renames that the scripts missed

This commit is contained in:
Jorge Manrubia
2025-04-09 14:56:59 +02:00
parent 6f00e1a79a
commit 221bbb3247
12 changed files with 28 additions and 28 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
require_relative "../../config/environment"
BUCKETS_COUNT = 100
BUBBLES_PER_COLLECTION = 50
COLLECTIONS_COUNT = 100
CARDS_PER_COLLECTION = 50
ApplicationRecord.current_tenant = "development-tenant"
account = Account.first
@@ -9,9 +9,9 @@ user = account.users.first
Current.session = user.sessions.last
workflow = account.workflows.first
BUCKETS_COUNT.times do |collection_index|
COLLECTIONS_COUNT.times do |collection_index|
collection = account.collections.create!(name: "Collection #{collection_index}", creator: user, workflow: workflow)
BUBBLES_PER_COLLECTION.times do |card_index|
CARDS_PER_COLLECTION.times do |card_index|
collection.cards.create!(title: "Card #{card_index}", creator: user, status: :published)
end
end