Sha256: e2415f4544bf36a8c6efc20d9d3236065324a9370e7e34eddfb21c82174edecf

Contents?: true

Size: 340 Bytes

Versions: 46

Compression:

Stored size: 340 Bytes

Contents

class CreateImages < ActiveRecord::Migration[5.0]
  def change
    create_table :images do |t|
      t.string  :image
      t.string  :image_type
      t.integer :imageable_id
      t.string  :imageable_type
      t.timestamps
    end

    add_index(:images, :image_type)
    add_index(:images, [ :imageable_id, :imageable_type ])
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
kuppayam-0.2.12.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.11.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.10.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.9.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.8.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.7.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.6.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.5.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.4.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.3.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.2.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.1.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.2.0.pre.materialize db/migrate/20170000000000_create_images.rb
kuppayam-0.1.39 db/migrate/20170000000000_create_images.rb
kuppayam-0.1.38 db/migrate/20170000000000_create_images.rb
kuppayam-0.1.37 db/migrate/20170000000000_create_images.rb
kuppayam-0.1.36 db/migrate/20170000000000_create_images.rb
kuppayam-0.1.35 db/migrate/20170000000000_create_images.rb
kuppayam-0.1.34 db/migrate/20170000000000_create_images.rb
kuppayam-0.1.33 db/migrate/20170000000000_create_images.rb