Sha256: 3c10374ccd8f519e803d422a18f58972165a32175b880ca05f36446848044f80
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 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 t.column :filters, :text end end def self.down drop_table :images end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dynamic_image-0.9.0 | lib/generators/dynamic_image/templates/migrations/create_images.rb |