From 0d36437e58bedc48b97d83e265e20bb8a7954f04 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 22 Sep 2015 23:58:08 +0200 Subject: [PATCH] Removed not needed calendars. --- db/migrate/20150968000001_create_calendar.rb | 92 -------------------- 1 file changed, 92 deletions(-) diff --git a/db/migrate/20150968000001_create_calendar.rb b/db/migrate/20150968000001_create_calendar.rb index 3e8fa1d85..ccacb6f43 100644 --- a/db/migrate/20150968000001_create_calendar.rb +++ b/db/migrate/20150968000001_create_calendar.rb @@ -15,98 +15,6 @@ class CreateCalendar < ActiveRecord::Migration end add_index :calendars, [:name], unique: true - Calendar.create_or_update( - name: 'US', - timezone: 'America/Los_Angeles', - business_hours: { - mon: { '09:00' => '17:00' }, - tue: { '09:00' => '17:00' }, - wed: { '09:00' => '17:00' }, - thu: { '09:00' => '17:00' }, - fri: { '09:00' => '17:00' } - }, - default: true, - ical_url: 'http://www.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/basic.ics', - updated_by_id: 1, - created_by_id: 1, - ) - Calendar.create_or_update( - name: 'Germany', - timezone: 'Europe/Berlin', - business_hours: { - mon: { '09:00' => '17:00' }, - tue: { '09:00' => '17:00' }, - wed: { '09:00' => '17:00' }, - thu: { '09:00' => '17:00' }, - fri: { '09:00' => '17:00' } - }, - default: false, - ical_url: 'http://www.google.com/calendar/ical/de.german%23holiday%40group.v.calendar.google.com/public/basic.ics', - updated_by_id: 1, - created_by_id: 1, - ) -=begin - Calendar.create_or_update( - name: 'French', - timezone: 'Europe/Paris', - business_hours: { - mon: { '09:00' => '17:00' }, - tue: { '09:00' => '17:00' }, - wed: { '09:00' => '17:00' }, - thu: { '09:00' => '12:00', '13:00' => '17:00' }, - fri: { '09:00' => '17:00' } - }, - default: false, - ical_url: 'http://www.google.com/calendar/ical/fr.french%23holiday%40group.v.calendar.google.com/public/basic.ics', - updated_by_id: 1, - created_by_id: 1, - ) - Calendar.create_or_update( - name: 'Switzerland', - timezone: 'Europe/Zurich', - business_hours: { - mon: { '09:00' => '17:00' }, - tue: { '09:00' => '17:00' }, - wed: { '09:00' => '17:00' }, - thu: { '09:00' => '12:00', '13:00' => '17:00' }, - fri: { '09:00' => '17:00' } - }, - default: false, - ical_url: 'http://www.google.com/calendar/ical/de.ch%23holiday%40group.v.calendar.google.com/public/basic.ics', - updated_by_id: 1, - created_by_id: 1, - ) - Calendar.create_or_update( - name: 'Austria', - timezone: 'Europe/Vienna', - business_hours: { - mon: { '09:00' => '17:00' }, - tue: { '09:00' => '17:00' }, - wed: { '09:00' => '17:00' }, - thu: { '09:00' => '17:00' }, - fri: { '09:00' => '17:00' } - }, - default: false, - ical_url: 'http://www.google.com/calendar/ical/de.austrian%23holiday%40group.v.calendar.google.com/public/basic.ics', - updated_by_id: 1, - created_by_id: 1, - ) - Calendar.create_or_update( - name: 'Italian', - timezone: 'Europe/Roma', - business_hours: { - mon: { '09:00' => '17:00' }, - tue: { '09:00' => '17:00' }, - wed: { '09:00' => '17:00' }, - thu: { '09:00' => '17:00' }, - fri: { '09:00' => '17:00' } - }, - default: false, - ical_url: 'http://www.google.com/calendar/ical/it.italian%23holiday%40group.v.calendar.google.com/public/basic.ics', - updated_by_id: 1, - created_by_id: 1, - ) -=end Scheduler.create_or_update( name: 'Sync calendars with ical feeds.', method: 'Calendar.sync',