1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/db/migrate/20191127153729_create_i_calendars.rb

18 lines
474 B
Ruby
Raw Normal View History

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
2019-11-27 17:05:19 +01:00
class CreateICalendars < ActiveRecord::Migration
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