给定一个用户表:
create_table :users do |t|
t.string :email
t.string :website
t.string :type
end
Class User < ActiveRecord::Base
以及从 User 继承的订阅者
Class Subscriber < User
插入订阅者时,我应该为类型列使用什么实际值?
给定一个用户表:
create_table :users do |t|
t.string :email
t.string :website
t.string :type
end
Class User < ActiveRecord::Base
以及从 User 继承的订阅者
Class Subscriber < User
插入订阅者时,我应该为类型列使用什么实际值?