Created a new rails project, then:
-
‘rails g model plan`
-
‘rails g model student/plan
-
‘rake db:migrate`
-
‘rails c`
-
Then in the console
a = Plan.create b = Student::Plan.create a.class => Plan(id: integer, created_at: datetime, updated_at: datetime) b.class => Student::Plan(id: integer, created_at: datetime, updated_at: datetime)
Werks for me!