rails engineで、複数railsアプリでモデルを切り出し、共有する
- https://github.com/tomoya128/rails_engine_sample
- https://github.com/tomoya128/test_mono_app1
- https://github.com/tomoya128/test_mono_app2
$ bin/rails c
[1] pry(main)> RailsEngineSample::User.all
RailsEngineSample::User Load (0.4ms) SELECT `rails_engine_sample_users`.* FROM `rails_engine_sample_users`
=> []
[1] pry(main)> user = RailsEngineSample::User.new
=> #<RailsEngineSample::User:0x00007f87ac2107d8 id: nil, created_at: nil, updated_at: nil>
[2] pry(main)> user.hoge
=> "hoge"