cirandas.net

ref: master

db/migrate/20161201191313_add_owner_to_image.rb


1
2
3
4
5
class AddOwnerToImage < ActiveRecord::Migration
  def change
    add_reference :images, :owner, polymorphic: true, index: true
  end
end