chore: Update Help Center APIs to accomodate locale (#4515)
This commit is contained in:
5
db/migrate/20220416203340_add_config_to_portal.rb
Normal file
5
db/migrate/20220416203340_add_config_to_portal.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddConfigToPortal < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :kbase_portals, :config, :jsonb, default: { allowed_locales: ['en'] }
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
class AddLocaleToKbaseCategory < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :kbase_categories, :locale, :string, default: 'en'
|
||||
add_index :kbase_categories, :locale
|
||||
add_index :kbase_categories, [:locale, :account_id]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user