Sha256: 32555000c47446662d43ca7e8a5a3d0d189bcb79fbac7a3acc62dfef2fefaf28

Contents?: true

Size: 624 Bytes

Versions: 11

Compression:

Stored size: 624 Bytes

Contents

class CreateImages < ActiveRecord::Migration
  def self.up
    create_table :images do |t|
      t.column :name,          :string
      t.column :filename,      :string
      t.column :content_type,  :string
      t.column :original_size, :string
      t.column :hotspot,       :string
      t.column :sha1_hash,     :string
      t.column :cropped,       :boolean, :null => false, :default => false
      t.column :crop_start,    :string
      t.column :crop_size,     :string
      t.column :created_at,    :datetime
      t.column :updated_at,    :datetime
    end
  end

  def self.down
    drop_table :images
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dynamic_image-1.0.4 lib/generators/dynamic_image/templates/migrations/create_images.rb
dynamic_image-1.0.3 lib/generators/dynamic_image/templates/migrations/create_images.rb
dynamic_image-1.0.2 lib/generators/dynamic_image/templates/migrations/create_images.rb
dynamic_image-1.0.1 lib/generators/dynamic_image/templates/migrations/create_images.rb
dynamic_image-0.9.9 lib/generators/dynamic_image/templates/migrations/create_images.rb
dynamic_image-0.9.8 lib/generators/dynamic_image/templates/migrations/create_images.rb
dynamic_image-0.9.7 lib/generators/dynamic_image/templates/migrations/create_images.rb
dynamic_image-0.9.6 lib/generators/dynamic_image/templates/migrations/create_images.rb
dynamic_image-0.9.5 lib/generators/dynamic_image/templates/migrations/create_images.rb
dynamic_image-0.9.4 lib/generators/dynamic_image/templates/migrations/create_images.rb
dynamic_image-0.9.3 lib/generators/dynamic_image/templates/migrations/create_images.rb