Sha256: 072fd02ed463989a7ef26f04d34d3a05d63a96f81363df45480b30500fef4669

Contents?: true

Size: 222 Bytes

Versions: 19

Compression:

Stored size: 222 Bytes

Contents

class CreateAddresses < ActiveRecord::Migration
  def change
    create_table :addresses do |t|
      t.references :addressable, polymorphic: true, index: true
      t.string :content

      t.timestamps
    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/20150216092218_create_addresses.rb
poly_belongs_to-0.3.0 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.2.9 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.2.8 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.2.7 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.2.6 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.2.5 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.2.4 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.2.3 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.2.2 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.2.1 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.2.0 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.1.10 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.1.9 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.1.8 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.1.7 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.1.6 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.1.5 test/dummy/db/migrate/20150216092218_create_addresses.rb
poly_belongs_to-0.1.4 test/dummy/db/migrate/20150216092218_create_addresses.rb