Sha256: 3037f4297d39969e408209fbd552d47f0beed237c808c1a30a0696e93ad116cf

Contents?: true

Size: 298 Bytes

Versions: 3

Compression:

Stored size: 298 Bytes

Contents

class CreateAuditEntries < ActiveRecord::Migration[5.0]
  def change
    create_table :audit_entries do |t|
      t.string :action
      t.references :actor, polymorphic: true
      t.references :receiver, polymorphic: true
      t.string :receiver_serialized

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
transcript-0.2.1 spec/dummy/db/migrate/20160823152659_create_audit_entries.rb
transcript-0.2.0 spec/dummy/db/migrate/20160823152659_create_audit_entries.rb
transcript-0.1.0 spec/dummy/db/migrate/20160823152659_create_audit_entries.rb