Class: CreateReleafRichtextAttachments

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/releaf/templates/migrations/create_releaf_richtext_attachments.rb

Instance Method Summary collapse

Instance Method Details

#changeObject


2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/releaf/templates/migrations/create_releaf_richtext_attachments.rb', line 2

def change
  create_table :releaf_richtext_attachments do |t|
    t.string  :file_uid
    t.string  :file_name
    t.string  :file_type
    t.string  :title

    t.timestamps(null: false)
  end
end