mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 22:21:11 +00:00
Assigns a random color to conference, track and difficulty level
This commit is contained in:
parent
fa129de063
commit
b9d01220ad
4 changed files with 50 additions and 4 deletions
7
db/migrate/20140530082708_remove_color_defaults.rb
Normal file
7
db/migrate/20140530082708_remove_color_defaults.rb
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue