Update widget colors based on the widgetConfig (#276)

This commit is contained in:
Pranav Raj S
2019-11-26 00:10:27 +05:30
committed by Sojan Jose
parent 9c6a101768
commit 5d2efdc7fc
11 changed files with 85 additions and 21 deletions

View File

@@ -0,0 +1,5 @@
class AddWidgetColorToWebWidget < ActiveRecord::Migration[6.1]
def change
add_column :channel_web_widgets, :widget_color, :string, default: '#1f93ff'
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2019_11_16_073924) do
ActiveRecord::Schema.define(version: 2019_11_24_091232) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -62,6 +62,7 @@ ActiveRecord::Schema.define(version: 2019_11_16_073924) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "website_token"
t.string "widget_color", default: "#1f93ff"
t.index ["website_token"], name: "index_channel_web_widgets_on_website_token", unique: true
end