Sha256: e6b1eddffcfb11f0a634e3cb01ee0ebd3e6ca0ad936e7efd1bdb0812578b274c

Contents?: true

Size: 211 Bytes

Versions: 2

Compression:

Stored size: 211 Bytes

Contents

class CreateImages < ActiveRecord::Migration
  def change
    create_table :images do |t|
      t.string :file
      t.references :imageable, polymorphic: true, index: true

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
uploadbox-0.0.2 lib/generators/uploadbox/image/templates/migrate/create_images.rb
uploadbox-0.0.1 lib/generators/file_uploader/image/templates/migrate/create_images.rb