how we can create realanship in models in ruby and rails code example Example: rails join table macro create_join_table :posts, :tags