Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Site.create(name: 'Irland',
- locales: ['en-GB'],
- domains: ['ie.funzing.dev'],
- currency_code: 'GBP',
- currency: '£',
- direction: 'ltr',
- referal_credits_amount: 5,
- timezones: ['Dublin'],
- support_phone: '020 3637 3306',
- country_code: 'IE',
- css: true,
- mc_list_id: '3518c539c1',
- support_email: 'team@funzing.com',
- week_start_day: 'monday',
- commission: 15,
- vat: 0
- )
- uk = Site.find_by_name('United Kingdom')
- ie = Site.find_by_name('Irland')
- uk.categories.each do |categories|
- ie.categories.create(category: category)
- end
- Category.all.each do |category|
- if category.sites_ids.include?(uk.id)
- category.sites_ids << ie.id
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement