diff options
author | jomo <github@jomo.tv> | 2015-01-17 16:04:07 +0100 |
---|---|---|
committer | jomo <github@jomo.tv> | 2015-01-17 16:04:07 +0100 |
commit | 5f00fc87a3f573915ce44893e02ec45df1bdad13 (patch) | |
tree | 42e78c3a7e53774d062f27f1704e801fc708c0fc /db | |
parent | 39fceedf56be0a7078c43ab726117cf043e8e0f3 (diff) |
proper color support for labels
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150117134404_add_color_to_label.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20150117134404_add_color_to_label.rb b/db/migrate/20150117134404_add_color_to_label.rb new file mode 100644 index 0000000..40b6f4a --- /dev/null +++ b/db/migrate/20150117134404_add_color_to_label.rb @@ -0,0 +1,5 @@ +class AddColorToLabel < ActiveRecord::Migration + def change + add_column :labels, :color, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index e0ce7e0..cd86337 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20141120202853) do +ActiveRecord::Schema.define(version: 20150117134404) do create_table "blogposts", force: true do |t| t.string "title" @@ -72,6 +72,7 @@ ActiveRecord::Schema.define(version: 20141120202853) do create_table "labels", force: true do |t| t.string "name" t.integer "role_id" + t.string "color" end create_table "register_tokens", force: true do |t| |