diff --git a/app/views/account/calculators/partials/_color_selector.html.erb b/app/views/account/calculators/partials/_color_selector.html.erb index ebb1b75f6..347c8a3cf 100644 --- a/app/views/account/calculators/partials/_color_selector.html.erb +++ b/app/views/account/calculators/partials/_color_selector.html.erb @@ -1,3 +1,7 @@
- <%= f.input :color, as: :color, label: 'Choose a Color for Calculator Page:', input_html: { class: 'form-control form-control-color p-2', style: 'width: 7rem; height: 3.5rem;' } %> + <%= f.input :color, as: :color, label: 'Choose a Color for Calculator Page:', + input_html: { + class: 'form-control form-control-color p-2', + style: 'width: 7rem; height: 3.5rem;' + } %>
diff --git a/db/migrate/20241201141708_add_color_to_calculators.rb b/db/migrate/20241201141708_add_color_to_calculators.rb index 76b5d6c00..f01cfdcd7 100644 --- a/db/migrate/20241201141708_add_color_to_calculators.rb +++ b/db/migrate/20241201141708_add_color_to_calculators.rb @@ -1,5 +1,5 @@ class AddColorToCalculators < ActiveRecord::Migration[7.2] def change - add_column :calculators, :color, :string, default: "#000000" + add_column :calculators, :color, :string, default: "#8fba3b" end end diff --git a/db/schema.rb b/db/schema.rb index ef8d5ecbc..bdc823ae8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -49,7 +49,7 @@ t.string "slug" t.string "uk_name", default: "", null: false t.string "en_name", default: "", null: false - t.string "color", default: "#000000" + t.string "color", default: "#8ffffb" t.index ["slug"], name: "index_calculators_on_slug", unique: true end