是否有任何方法可以在创建时覆盖模型的id值?就像是:
Post.create(:id => 10, :title => 'Test')
会是理想的,但显然不会奏效.
activerecord ruby-on-rails
activerecord ×1
ruby-on-rails ×1