How to customize Rails 3 STI column name

后端 未结 4 1875
旧巷少年郎
旧巷少年郎 2020-12-31 11:08

I have a class named Post:

class Post < ActiveRecord::Base
end

I have a class named Question that inheriting f

4条回答
  •  有刺的猬
    2020-12-31 11:16

    This might be what you're looking for.

    http://lorefnon.me/2014/07/27/optimizing-sti-columns.html

    EDIT: Updated URL (thanks @SubhashChandran)

提交回复
热议问题