複数Railsアプリケーションから同一DB(テーブル)を参照する場合にRails Engineを活用してmodelのソースを共有するRailsRailsEngine 色々あって、表題を実装しました。 もしこのようなことをやろうと思ってる方の1つの手段として参考になれば幸いです。 前提条件 RubyやらRailsのバージョン関係 Ruby:2.2.3 Rails:4.2.6 システム構成案 アプリケーションとDBの関係は以下(あくまで例です) やりたいこと Railsのmodel部分を共有したい。これにつきます。 方法は色々あると思いますが、自身がやったのは 「共通となるModelをRails EngineにてPlugin化し、各アプリケーションでそれを共有/使用する」 です。他にもgitでごにょごにょするとか色々あると思います。 共通modelのplugin作成 共通となるmodelはRa