Railsでnamespaceはadminだけど、テーブルはadmin_とつけたくない場合 例えばuser

app/models/admin.rb

blockquotep
premodule Admin
    #def self.table_name_prefix
    #'admin_'
    #end
end


app/models/admin/user.rb

blockquotep
preclass Admin::User < ActiveRecord::Base
    self.table_name = 'users'
end