Sha256: 6c4f4cd24485abecdd3e8f4bfaeb899fd6884f105af1fed52a273b2436a087c9

Contents?: true

Size: 375 Bytes

Versions: 5

Compression:

Stored size: 375 Bytes

Contents

class CreatePhotos < ActiveRecord::Migration
  def self.up
    create_table :photos do |t|
      t.string :title, :url, :null => false
      t.string :author_name, :author_url, :thumbnail_url
      t.integer :width, :height, :null => false
      t.integer :thumbnail_width, :thumbnail_height
      t.timestamps
    end
  end

  def self.down
    drop_table :photos
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
oembed_provider_engine-0.2.0 test/dummy/db/migrate/20110212022722_create_photos.rb
oembed_provider_engine-0.1.0 test/dummy/db/migrate/20110212022722_create_photos.rb
oembed_provider_engine-0.0.1 test/dummy/db/migrate/20110212022722_create_photos.rb
oembed_provider-0.1.1 test/full_2_3_5_app_with_tests/db/migrate/20110212022722_create_photos.rb
oembed_provider-0.1.0 test/full_2_3_5_app_with_tests/db/migrate/20110212022722_create_photos.rb