Assigns a random color to conference, track and difficulty level

This commit is contained in:
Chrisbr 2014-06-02 12:31:44 +02:00
parent fa129de063
commit b9d01220ad
4 changed files with 50 additions and 4 deletions

View file

@ -0,0 +1,7 @@
class RemoveColorDefaults < ActiveRecord::Migration
def change
change_column_default(:tracks, :color, nil)
change_column_default(:conferences, :color, nil)
change_column_default(:difficulty_levels, :color, nil)
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140529133339) do
ActiveRecord::Schema.define(version: 20140530082708) do
create_table "answers", force: true do |t|
t.string "title"
@ -78,7 +78,7 @@ ActiveRecord::Schema.define(version: 20140529133339) do
t.boolean "use_volunteers"
t.string "media_id"
t.string "media_type"
t.string "color", default: "#000000"
t.string "color"
t.text "description"
t.text "registration_description"
t.text "ticket_description"
@ -100,7 +100,7 @@ ActiveRecord::Schema.define(version: 20140529133339) do
t.integer "conference_id"
t.string "title"
t.text "description"
t.string "color", default: "#ffffff"
t.string "color"
t.datetime "created_at"
t.datetime "updated_at"
end
@ -313,7 +313,7 @@ ActiveRecord::Schema.define(version: 20140529133339) do
t.integer "conference_id"
t.string "name", null: false
t.text "description"
t.string "color", default: "#ffffff"
t.string "color"
t.datetime "created_at"
t.datetime "updated_at"
end