2019-11-27 17:05:19 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# From this migration, we store URL to iCalendar files and a piece of configuration about them.
|
2020-02-26 10:19:43 +01:00
|
|
|
# This allows to display the events of these external calendars in Fab-manager
|
2020-03-24 16:45:27 +01:00
|
|
|
class CreateICalendars < ActiveRecord::Migration[4.2]
|
2019-11-27 17:05:19 +01:00
|
|
|
def change
|
|
|
|
create_table :i_calendars do |t|
|
|
|
|
t.string :url
|
2019-11-27 17:39:19 +01:00
|
|
|
t.string :name
|
2019-11-27 17:05:19 +01:00
|
|
|
t.string :color
|
|
|
|
t.string :text_color
|
|
|
|
t.boolean :text_hidden
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|