chore: Remove extra audit column (#6769)

- Drop unintentional "audits.integer" column
This commit is contained in:
Jordan Brough
2023-03-29 00:54:14 -06:00
committed by GitHub
parent 2b7ff48bcd
commit aa75666ad9
3 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"