Sha256: 53d46bb07df0f20ffb499ffc6ccb823496829bdf6af5fd7d83b3c3c820597bb0
Contents?: true
Size: 529 Bytes
Versions: 15
Compression:
Stored size: 529 Bytes
Contents
# Used by the audit logging feature create_table :account_authentication_audit_logs do primary_key :id, type: :Bignum foreign_key :account_id, :accounts, null: false, type: :Bignum DateTime :at, null: false, default: Sequel::CURRENT_TIMESTAMP String :message, null: false <% case db.database_type -%> <% when :postgres -%> jsonb :metadata <% when :sqlite, :mysql -%> json :metadata <% else -%> String :metadata <% end -%> index [:account_id, :at], name: :audit_account_at_idx index :at, name: :audit_at_idx end
Version data entries
15 entries across 15 versions & 1 rubygems