Sha256: e64620d9da9dc0faf0c8da13709b2400ece0d600b8aba8fd54a7382ea2dcc78c

Contents?: true

Size: 221 Bytes

Versions: 18

Compression:

Stored size: 221 Bytes

Contents

class CreateSquishies < ActiveRecord::Migration
  def change
    create_table :squishies do |t|
      t.string :content
      t.references :squishable, polymorphic: true, index: true

      t.timestamps
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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