Sha256: 8ff73681d018b320069f5754912da40b8353eb5ea1aa2be119fcca0a6e9fa1e9

Contents?: true

Size: 602 Bytes

Versions: 10

Compression:

Stored size: 602 Bytes

Contents

class CreatePhotos < ActiveRecord::Migration
  def self.up
    create_table :photos do |t|
      t.column "name", :string
      t.column "description", :text
      t.column "created_at", :datetime
      t.column "updated_at", :datetime
      t.column "user_id", :integer
      t.column "content_type", :string
      t.column "filename", :string     
      t.column "size", :integer
      t.column "parent_id",  :integer 
      t.column "thumbnail", :string      
      t.column "width", :integer  
      t.column "height", :integer      
    end
  end

  def self.down
    drop_table :photos
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/003_create_photos.rb
community_engine-3.0.0 db/migrate/003_create_photos.rb
community_engine-2.3.2 db/migrate/003_create_photos.rb
community_engine-2.3.1 db/migrate/003_create_photos.rb
community_engine-2.3.0 db/migrate/003_create_photos.rb
community_engine-2.1.0 db/migrate/003_create_photos.rb
community_engine-2.0.0 db/migrate/003_create_photos.rb
community_engine-2.0.0.beta3 db/migrate/003_create_photos.rb
community_engine-2.0.0.beta2 db/migrate/003_create_photos.rb
community_engine-2.0.0.beta1 db/migrate/003_create_photos.rb