Class: CreateFieldImage

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/activeadmin-magicfields/install/templates/create_field_image.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
# File 'lib/generators/activeadmin-magicfields/install/templates/create_field_image.rb', line 2

def change
  create_table :field_images do |t|
    t.has_attached_file :image
    t.string :title
    t.integer :field_template_id
    t.timestamps
  end
end