Sha256: c622ca8b29baa7de7d03a5f273ab0a7e8c808943087e0ef39f1986798bf06956

Contents?: true

Size: 226 Bytes

Versions: 19

Compression:

Stored size: 226 Bytes

Contents

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

      t.timestamps null: false
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
poly_belongs_to-1.0.0 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.3.0 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.2.9 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.2.8 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.2.7 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.2.6 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.2.5 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.2.4 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.2.3 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.2.2 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.2.1 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.2.0 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.1.10 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.1.9 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.1.8 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.1.7 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.1.6 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.1.5 test/dummy/db/migrate/20150211224225_create_phones.rb
poly_belongs_to-0.1.4 test/dummy/db/migrate/20150211224225_create_phones.rb