db/migrate/20170321104203_create_stall_images.rb
class CreateStallImages < ActiveRecord::Migration
def change
create_table :stall_images do |t|
t.integer :position, default: 0
t.references :imageable, polymorphic: true, index: true
t.attachment :file
t.timestamps null: false
end
end
end