chore: Enable the new Rubocop rules (#7122)
fixes: https://linear.app/chatwoot/issue/CW-1574/renable-the-disabled-rubocop-rules
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class InstallAudited < ActiveRecord::Migration[6.1]
|
||||
# rubocop:disable RMetrics/MethodLength
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def self.up
|
||||
create_table :audits, :force => true do |t|
|
||||
t.bigint :auditable_id
|
||||
@@ -19,7 +19,7 @@ class InstallAudited < ActiveRecord::Migration[6.1]
|
||||
t.string :request_uuid
|
||||
t.datetime :created_at
|
||||
end
|
||||
# rubocop:enable RMetrics/MethodLength
|
||||
# rubocop:enable Metrics/MethodLength
|
||||
|
||||
add_index :audits, [:auditable_type, :auditable_id, :version], :name => 'auditable_index'
|
||||
add_index :audits, [:associated_type, :associated_id], :name => 'associated_index'
|
||||
|
||||
@@ -5,7 +5,7 @@ ConfigLoader.new.process
|
||||
## Seeds productions
|
||||
if Rails.env.production?
|
||||
# Setup Onboarding flow
|
||||
::Redis::Alfred.set(::Redis::Alfred::CHATWOOT_INSTALLATION_ONBOARDING, true)
|
||||
Redis::Alfred.set(Redis::Alfred::CHATWOOT_INSTALLATION_ONBOARDING, true)
|
||||
end
|
||||
|
||||
## Seeds for Local Development
|
||||
@@ -46,7 +46,7 @@ unless Rails.env.production?
|
||||
inbox = Inbox.create!(channel: web_widget, account: account, name: 'Acme Support')
|
||||
InboxMember.create!(user: user, inbox: inbox)
|
||||
|
||||
contact_inbox = ::ContactInboxWithContactBuilder.new(
|
||||
contact_inbox = ContactInboxWithContactBuilder.new(
|
||||
source_id: user.id,
|
||||
inbox: inbox,
|
||||
hmac_verified: true,
|
||||
|
||||
Reference in New Issue
Block a user