Sha256: ecdda1b917ab544c2d2eff837ecdbade09e2234713fd4b4fbf3224a8edf9d76d

Contents?: true

Size: 343 Bytes

Versions: 2

Compression:

Stored size: 343 Bytes

Contents

class CreateImages < ActiveRecord::Migration
  def self.up
    create_table :images do |t|
      t.string    :title
      t.string    :image_file_name
      t.string    :image_content_type
      t.integer   :image_file_size
      t.datetime  :image_updated_at
      t.timestamps
    end
  end

  def self.down
    drop_table :images
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merrycms-0.1.7 lib/generators/merrycms/templates/create_images_migration.rb
merrycms-0.1.4 lib/generators/merrycms/templates/create_images_migration.rb