Class: CreateAudits
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateAudits
- Defined in:
- lib/generators/active_audit/templates/install_migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/active_audit/templates/install_migration.rb', line 2 def change create_table :audits do |t| t.references :auditable, null: false, index: true, polymorphic: true t.references :user, index: true t.integer :source, null: false, default: 0 t.string :action, null: false t.text :revisions t.text :comment t.string :remote_ip t.string :remote_uuid t. null: false end end |