how to access rails relatiohships method code example Example: rails join table macro create_join_table :posts, :tags