Sha256: 194d8290295076d51dc3c4073e9a7c945758235c16664d58116f1848c68d9a77
Contents?: true
Size: 747 Bytes
Versions: 14
Compression:
Stored size: 747 Bytes
Contents
class CreateAuditRequestsN<%= @migration_postfix %> < ActiveRecord::Migration def change <% audit_tbn = ModelsAuditor.config.audit_requests_table_name %> create_table :<%= audit_tbn %>, comment: 'Журнал изменений данных в моделях' do |t| t.integer :user_id, null: true, unsigned: true, comment: 'id ответственного' t.json :request_info, null: false, default: {}, comment: 'Информация о запросе' t.datetime :created_at, null: false, comment: 'дата и время запроса' end add_index :<%= audit_tbn %>, :id add_index :<%= audit_tbn %>, :created_at end end
Version data entries
14 entries across 14 versions & 1 rubygems