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