Sha256: e5e8474943d9e32c079388ae9221df4deae03ad16baf2e93f3a419f625a4282f

Contents?: true

Size: 154 Bytes

Versions: 3

Compression:

Stored size: 154 Bytes

Contents

class AddContactableToContacts < ActiveRecord::Migration
  def change
    add_reference :contacts, :contactable, polymorphic: true, index: true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
poly_belongs_to-1.0.0 test/dummy/db/migrate/20160120224015_add_contactable_to_contacts.rb
poly_belongs_to-0.3.0 test/dummy/db/migrate/20160120224015_add_contactable_to_contacts.rb
poly_belongs_to-0.2.9 test/dummy/db/migrate/20160120224015_add_contactable_to_contacts.rb