Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

Add references rails migration

class AddUserToUploads < ActiveRecord::Migration
  def change
    add_reference :uploads, :user, index: true
  end
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Add #references #rails #migration
ADD COMMENT
Topic
Name
7+5 =