Removed not needed calendars.

This commit is contained in:
Martin Edenhofer 2015-09-22 23:58:08 +02:00
parent d311909565
commit 0d36437e58

View file

@ -15,98 +15,6 @@ class CreateCalendar < ActiveRecord::Migration
end end
add_index :calendars, [:name], unique: true 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( Scheduler.create_or_update(
name: 'Sync calendars with ical feeds.', name: 'Sync calendars with ical feeds.',
method: 'Calendar.sync', method: 'Calendar.sync',