DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+9 =
Submit