standard_audit 0.12.1 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +0,0 @@
1
- module StandardAudit
2
- module Generators
3
- # DEPRECATED (0.12.0); scheduled for removal. This is the 0.2 -> 0.3
4
- # upgrade path that added the `checksum` column. Every install since 0.3
5
- # creates the column via `standard_audit:install`, and no known host still
6
- # needs it. Run `standard_audit:add_previous_checksum` on hosts that
7
- # predate 0.8 instead.
8
- class AddChecksumsGenerator < Rails::Generators::Base
9
- include Rails::Generators::Migration
10
- source_root File.expand_path("templates", __dir__)
11
-
12
- DEPRECATION_MESSAGE = "standard_audit:add_checksums is deprecated and will be removed in a " \
13
- "future release. It only upgrades pre-0.3 installs; the install " \
14
- "generator has created the checksum column since 0.3.".freeze
15
-
16
- def self.next_migration_number(dirname)
17
- Time.now.utc.strftime("%Y%m%d%H%M%S")
18
- end
19
-
20
- def warn_deprecated
21
- say_status :deprecated, DEPRECATION_MESSAGE, :yellow
22
- warn "[StandardAudit] DEPRECATION: #{DEPRECATION_MESSAGE}"
23
- end
24
-
25
- def copy_migration
26
- migration_template "add_checksum_to_audit_logs.rb.erb", "db/migrate/add_checksum_to_audit_logs.rb"
27
- end
28
- end
29
- end
30
- end
@@ -1,6 +0,0 @@
1
- class AddChecksumToAuditLogs < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
2
- def change
3
- add_column :audit_logs, :checksum, :string, limit: 64
4
- add_index :audit_logs, :created_at
5
- end
6
- end