Class: CreateAmpleAssetsTables

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/ample_assets/templates/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/generators/ample_assets/templates/migration.rb', line 2

def change
  create_table :ample_assets_files do |t|
    t.string   :keywords
    t.string   :alt_text
    t.string   :attachment_uid
    t.string   :attachment_mime_type
    t.string   :attachment_ext
    t.string   :attachment_name
    t.integer  :attachment_width
    t.integer  :attachment_height
    t.string   :attachment_gravity
    t.timestamps
  end
end