Removed default value for the recurring rule

This commit is contained in:
echarp 2016-09-11 18:04:24 +02:00
parent 5bf6d91007
commit c2ad8dfb4d
2 changed files with 15 additions and 15 deletions

View File

@ -2,7 +2,7 @@
class CreateSchedules < ActiveRecord::Migration
def change
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
add_reference :events, :event, index: true
end

View File

@ -83,7 +83,7 @@ ActiveRecord::Schema.define(version: 20160616190823) do
t.string "place_name", limit: 255
t.integer "count", default: 1
t.integer "repeat", default: 0
t.text "rule", default: "daily"
t.text "rule"
t.integer "event_id"
end