Class: CreateDocuments
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateDocuments
- Defined in:
- lib/generators/merrycms/templates/create_documents_migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'lib/generators/merrycms/templates/create_documents_migration.rb', line 13 def self.down drop_table :documents end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/merrycms/templates/create_documents_migration.rb', line 2 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. end end |