Created
December 29, 2018 11:58
-
-
Save nipe0324/856efe89ad562c7ffeb28fd38a34aa9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```rb | |
# table | |
# - users | |
# - users_profiles | |
# app/models/user.rb | |
class User < ApplicationRecord | |
end | |
# app/models/users.rb | |
module Users | |
def self.table_name_prefix | |
'users_' | |
end | |
end | |
# app/models/users/profile.rb | |
module Users | |
class Profile < ApplicationRecord | |
end | |
end | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment