Sha256: ef8168b6c21fef3601c493502413289ca79f420068026519f6850878775e0dfd

Contents?: true

Size: 524 Bytes

Versions: 5

Compression:

Stored size: 524 Bytes

Contents

# This migration creates the `potential_crufts` table
class CreatePotentialCrufts < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :potential_crufts do |t|
      t.string :owner_name, null: false
      t.string :method_name, null: false
      t.string :method_type, null: false
      t.integer :invocations, null: false, default: 0
      t.datetime :deleted_at
      t.timestamps

      t.index :owner_name
      t.index :method_name
      t.index %i(owner_name method_name)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
is_this_used-0.1.12 lib/generators/is_this_used/templates/create_potential_crufts.rb.erb
is_this_used-0.1.11 lib/generators/is_this_used/templates/create_potential_crufts.rb.erb
is_this_used-0.1.10 lib/generators/is_this_used/templates/create_potential_crufts.rb.erb
is_this_used-0.1.9 lib/generators/is_this_used/templates/create_potential_crufts.rb.erb
is_this_used-0.1.8 lib/generators/is_this_used/templates/create_potential_crufts.rb.erb