Sha256: 1141834503814546eb7dc427dd66b2df8e443f8b425dfc528bb54c3393cabc25

Contents?: true

Size: 351 Bytes

Versions: 38

Compression:

Stored size: 351 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :lockbox_audits do |t|
      t.references :subject, polymorphic: true
      t.references :viewer, polymorphic: true
      t.<%= data_type %> :data
      t.string :context
      t.string :ip
      t.datetime :created_at
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
lockbox-2.0.0 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.4.1 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.4.0 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.3.3 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.3.2 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.3.1 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.3.0 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.2.0 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.1.2 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.1.1 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.1.0 lib/generators/lockbox/templates/migration.rb.tt
lockbox-1.0.0 lib/generators/lockbox/templates/migration.rb.tt
lockbox-0.6.8 lib/generators/lockbox/templates/migration.rb.tt
lockbox-0.6.7 lib/generators/lockbox/templates/migration.rb.tt
lockbox-0.6.6 lib/generators/lockbox/templates/migration.rb.tt
lockbox-0.6.5 lib/generators/lockbox/templates/migration.rb.tt
lockbox-0.6.4 lib/generators/lockbox/templates/migration.rb.tt
lockbox-0.6.3 lib/generators/lockbox/templates/migration.rb.tt
lockbox-0.6.2 lib/generators/lockbox/templates/migration.rb.tt
lockbox-0.6.1 lib/generators/lockbox/templates/migration.rb.tt