Make the application multi-tenant based on a wedding model #153
@ -9,8 +9,7 @@ Group.delete_all
|
||||
|
||||
Wedding.delete_all
|
||||
|
||||
Wedding.create!(slug: :default, date: 1.year.from_now)
|
||||
|
||||
ActsAsTenant.with_tenant(Wedding.create!(slug: :default, date: 1.year.from_now)) do
|
||||
Expense.create!(name: 'Photographer', amount: 3000, pricing_type: 'fixed')
|
||||
Expense.create!(name: 'Country house', amount: 6000, pricing_type: 'fixed')
|
||||
Expense.create!(name: 'Catering', amount: 200, pricing_type: 'per_person')
|
||||
@ -72,7 +71,7 @@ ActiveJob.perform_all_later(3.times.map { TableSimulatorJob.new })
|
||||
'red'.paint.palette.triad(as: :hex).zip(Group.roots).each { |(color, group)| group.update!(color: color.paint.desaturate(40)) }
|
||||
|
||||
Group.roots.each(&:colorize_children)
|
||||
|
||||
end
|
||||
User.create!(
|
||||
email: 'development@example.com',
|
||||
confirmed_at: Time.zone.now,
|
||||
|
Loading…
x
Reference in New Issue
Block a user