Removed default value for the recurring rule
This commit is contained in:
parent
5bf6d91007
commit
c2ad8dfb4d
@ -2,7 +2,7 @@
|
|||||||
class CreateSchedules < ActiveRecord::Migration
|
class CreateSchedules < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
add_column :events, :repeat, :integer, default: 0
|
add_column :events, :repeat, :integer, default: 0
|
||||||
add_column :events, :rule, :text, default: 'daily'
|
add_column :events, :rule, :text
|
||||||
# This column is there to manage scheduled events
|
# This column is there to manage scheduled events
|
||||||
add_reference :events, :event, index: true
|
add_reference :events, :event, index: true
|
||||||
end
|
end
|
||||||
|
@ -83,7 +83,7 @@ ActiveRecord::Schema.define(version: 20160616190823) do
|
|||||||
t.string "place_name", limit: 255
|
t.string "place_name", limit: 255
|
||||||
t.integer "count", default: 1
|
t.integer "count", default: 1
|
||||||
t.integer "repeat", default: 0
|
t.integer "repeat", default: 0
|
||||||
t.text "rule", default: "daily"
|
t.text "rule"
|
||||||
t.integer "event_id"
|
t.integer "event_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user