Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails reference a column with another name

t.references :author, index: true, foreign_key: { to_table: :users }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #reference #column
ADD COMMENT
Topic
Name
9+9 =