Rails 使用 store 能这样建立关系吗?

yaoge · October 23, 2013 · Last by Rei replied at October 24, 2013 · 1831 hits
class User < ActiveRecord::Base
  store :settings, accessors => [:source_id,:other]
end

这样的资料存储方式可以像下面这样使用 belongs_to 建立关系吗?

class User < ActiveRecord::Base
  store :settings, accessors => [:source_id,:other]

  belongs_to :source

end

store 这个东东会不会搞得页面打开很慢?

楼主应该去试试,然后把结果贴上来。

You need to Sign in before reply, if you don't have an account, please Sign up first.