Return target relation of this attribute type
class Tasks < ROM::Relation[:memory] schema do attribute :id, Types::Int attribute :user_id, Types.ForeignKey(:users) end end Users.schema[:id].target # => nil Users.schema[:user_id].target # => :users
Returns:
144 145 146
# File 'lib/rom/attribute.rb', line 144 def target meta[:target] end