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

@ -59,19 +59,19 @@ ActiveRecord::Schema.define(version: 20160616190823) do
add_index "cities", ["name"], name: "cities_name"
create_table "events", force: :cascade do |t|
t.string "title", limit: 255, default: "", null: false
t.text "description", limit: 65535, null: false
t.datetime "start_time", null: false
t.datetime "end_time", null: false
t.string "title", limit: 255, default: "", null: false
t.text "description", limit: 65535, null: false
t.datetime "start_time", null: false
t.datetime "end_time", null: false
t.string "city", limit: 255, default: ""
t.integer "region_id", limit: 4, default: 0, null: false
t.integer "locality", limit: 4, default: 0, null: false
t.string "url", limit: 255, default: "", null: false
t.string "contact", limit: 255, default: "", null: false
t.string "submitter", limit: 255, default: "", null: false
t.integer "moderated", limit: 4, default: 0, null: false
t.string "tags", limit: 255, default: "", null: false
t.string "secret", limit: 255, default: "", null: false
t.integer "region_id", limit: 4, default: 0, null: false
t.integer "locality", limit: 4, default: 0, null: false
t.string "url", limit: 255, default: "", null: false
t.string "contact", limit: 255, default: "", null: false
t.string "submitter", limit: 255, default: "", null: false
t.integer "moderated", limit: 4, default: 0, null: false
t.string "tags", limit: 255, default: "", null: false
t.string "secret", limit: 255, default: "", null: false
t.datetime "decision_time"
t.datetime "submission_time"
t.string "moderator_mail_id", limit: 32
@ -79,11 +79,11 @@ ActiveRecord::Schema.define(version: 20160616190823) do
t.text "address", limit: 65535
t.float "latitude", limit: 24
t.float "longitude", limit: 24
t.integer "lock_version", limit: 4, default: 0, null: false
t.integer "lock_version", limit: 4, default: 0, null: false
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