Sha256: 2a6e99e6e3237f06c5f147e1ba636d721aaf1f6a2f279d0bab8c0e8e482f0566

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

class CreateDocuments < ActiveRecord::Migration
  def self.up
    create_table :documents do |t|
      t.string    :title
      t.string    :doc_file_name
      t.string    :doc_content_type
      t.integer   :doc_file_size
      t.datetime  :doc_updated_at
      t.timestamps
    end
  end

  def self.down
    drop_table :documents
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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