lib/rom/sql/plugin/associates.rb in rom-sql-0.5.1 vs lib/rom/sql/plugin/associates.rb in rom-sql-0.5.2

- old
+ new

@@ -44,10 +44,10 @@ # Set command to associate tuples with a parent tuple using provided keys # # @example # class CreateTask < ROM::Commands::Create[:sql] # relation :tasks - # associates :user, [:user_id, :id] + # associates :user, key: [:user_id, :id] # end # # create_user = rom.command(:user).create.with(name: 'Jane') # # create_tasks = rom.command(:tasks).create