mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
chore: Remove extra audit column (#6769)
- Drop unintentional "audits.integer" column
This commit is contained in:
@@ -13,7 +13,7 @@ class InstallAudited < ActiveRecord::Migration[6.1]
|
||||
t.string :username
|
||||
t.string :action
|
||||
t.jsonb :audited_changes
|
||||
t.integer :version, :integer, :default => 0
|
||||
t.integer :version, :default => 0
|
||||
t.string :comment
|
||||
t.string :remote_address
|
||||
t.string :request_uuid
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
class DropExtraAuditIntegerColumn < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
# this column was added unintentionally for a time in a migration but not in schema.rb, so some
|
||||
# installations will have it and some won't.
|
||||
remove_column :audits, :integer, :integer, default: 0, if_exists: true
|
||||
end
|
||||
end
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2023_03_27_081350) do
|
||||
ActiveRecord::Schema.define(version: 2023_03_28_131926) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_stat_statements"
|
||||
|
||||
Reference in New Issue
Block a user