2016-06-25 16:03:08 +02:00
|
|
|
# Manage a schedule for events, that will let adl create recurring events
|
|
|
|
class CreateSchedules < ActiveRecord::Migration
|
|
|
|
def change
|
2016-09-11 17:40:49 +02:00
|
|
|
add_column :events, :repeat, :integer, default: 0
|
2016-09-11 18:04:24 +02:00
|
|
|
add_column :events, :rule, :text
|
2016-09-11 17:40:49 +02:00
|
|
|
# This column is there to manage scheduled events
|
|
|
|
add_reference :events, :event, index: true
|
2016-06-25 16:03:08 +02:00
|
|
|
end
|
|
|
|
end
|