Sha256: 294c6e731061528d4fa1e6482b44d049daf173333eada2b11cf474741719f797

Contents?: true

Size: 271 Bytes

Versions: 6

Compression:

Stored size: 271 Bytes

Contents

class CreatePhotos < ActiveRecord::Migration
  def change
    create_table :photos do |t|
      t.integer :imageable_id
      t.string :imageable_type
      t.integer :position
      t.string :src

      t.timestamps
    end
    add_index :photos, :imageable_id
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
redde-0.1.7 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.6 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.5 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.4 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.3 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.2 lib/generators/redde/photo/templates/create_photos.rb