Sha256: 4e00248386878107f2bd3137bf7ad1407a1411c2d210ff7fa702bc19d4ab9fa9

Contents?: true

Size: 202 Bytes

Versions: 1

Compression:

Stored size: 202 Bytes

Contents

class CreatePhones < ActiveRecord::Migration
  def change
    create_table :phones do |t|
      t.references :phoneable, polymorphic: true, index: true

      t.timestamps null: false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
poly_belongs_to-0.1.3 test/dummy/db/migrate/20150211224225_create_phones.rb