Sha256: 1fd424b8e108f81d9cd9f38465f5147454f4f16a556fb90a982f2c331105ab8a

Contents?: true

Size: 363 Bytes

Versions: 18

Compression:

Stored size: 363 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.string :token

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

Version data entries

18 entries across 10 versions & 1 rubygems

Version Path
redde-0.1.18 spec/dummy/db/migrate/20140607122532_create_photos.rb
redde-0.1.18 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.17 spec/dummy/db/migrate/20140607122532_create_photos.rb
redde-0.1.17 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.16 spec/dummy/db/migrate/20140607122532_create_photos.rb
redde-0.1.16 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.15 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.15 spec/dummy/db/migrate/20140607122532_create_photos.rb
redde-0.1.14 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.14 spec/dummy/db/migrate/20140607122532_create_photos.rb
redde-0.1.13 spec/dummy/db/migrate/20140607122532_create_photos.rb
redde-0.1.13 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.12 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.12 spec/dummy/db/migrate/20140607122532_create_photos.rb
redde-0.1.11 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.11 spec/dummy/db/migrate/20140607122532_create_photos.rb
redde-0.1.10 lib/generators/redde/photo/templates/create_photos.rb
redde-0.1.9 lib/generators/redde/photo/templates/create_photos.rb