{"id":66196,"date":"2021-08-01T08:08:09","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"https:\/\/www.sejuku.net\/blog\/?p=66196"},"modified":"2024-05-06T11:50:18","modified_gmt":"2024-05-06T02:50:18","slug":"%e3%80%90rails%e5%85%a5%e9%96%80%e3%80%91rails-erd%e3%81%a7er%e5%9b%b3%e3%82%92%e8%87%aa%e5%8b%95%e4%bd%9c%e6%88%90%e3%81%97%e3%82%88%e3%81%86%ef%bc%81%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/66196","title":{"rendered":"\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30aa\u30aa\u30a4\u30b7\u3067\u3059\u3002<\/p>\n<p><span style=\"color: #54a870\"><strong>Rails ERD<\/strong><\/span>\u3092\u3054\u5b58\u77e5\u3067\u3059\u304b\uff1f<\/p>\n<p>Rails ERD\u3092\u4f7f\u3046\u3068Rails\u306e<span style=\"color: #ff0000;background-color: #ffff99\"><strong>\u30e2\u30c7\u30eb\u304b\u3089ER\u56f3\u3092\u81ea\u52d5\u751f\u6210<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<\/p>\n<ul>\n<li><span style=\"color: #ff0000\"><strong><span style=\"color: #f75959\"><strong>Rails ERD\u3068\u306f<\/strong><\/span><\/strong><\/span><\/li>\n<li><span style=\"color: #f75959\"><strong>Rails ERD\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/strong><\/span><\/li>\n<li><span style=\"color: #f75959\"><strong>Rails ERD\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046<\/strong><\/span><\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u3001\u57fa\u672c\u7684\u306a\u89e3\u8aac\u304b\u3089<\/p>\n<ul>\n<li><span style=\"color: #f75959\"><strong>ER\u56f3\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u65b9\u6cd5<\/strong><\/span><\/li>\n<li><span style=\"color: #f75959\"><strong>\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u5225\u306eER\u56f3\u30b5\u30f3\u30d7\u30eb<\/strong><\/span><\/li>\n<\/ul>\n<p>\u306a\u3069\u306e\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306aRails ERD\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\uff01<\/p>\n<h2>Rails ERD\u3068\u306f<\/h2>\n<p><span style=\"color: #339966\"><strong>Rails ERD<\/strong><\/span>\u3068\u306f\u3001Rails\u30e2\u30c7\u30eb\u306e<span style=\"color: #0000ff\"><strong>ER\u56f3\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u305f\u3081<\/strong><\/span>\u306egem\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p>\u751f\u6210\u3057\u305fER\u56f3\u306f\u3001\u4f8b\u3048\u3070\u3053\u306e\u3088\u3046\u306a\u753b\u50cf\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-66223 alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/erd_refinery.png\" alt=\"\" width=\"720\" height=\"424\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/erd_refinery.png 720w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/erd_refinery-150x88.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/erd_refinery-300x177.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/erd_refinery-640x377.png 640w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>\u51fa\u5178:\u00a0<a href=\"https:\/\/voormedia.github.io\/rails-erd\/gallery.html\" target=\"_blank\" rel=\"noopener\">Rails ERD \u2013 Gallery of example diagrams<\/a><\/p>\n<p><span style=\"color: #54a870\"><strong>ER\u56f3(Entity-Relationship Diagram)<\/strong><\/span>\u3068\u306f\u3001\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u306e\u69cb\u9020\u3084\u95a2\u9023\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306e\u8a18\u6cd5\u3067\u3059\u3002<\/p>\n<p>ER\u56f3\u306e\u4f5c\u6210\u306f\u30bf\u30a4\u30df\u30f3\u30b0\u306f\u3001\u4e00\u822c\u306b\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3059\u308b\u524d\u306e\u8a2d\u8a08\u6bb5\u968e\u3067\u4f5c\u6210\u3057\u307e\u3059\u304c\u3001Ruby on Rails\u306e\u5834\u5408\u306f\u30e2\u30c7\u30eb\u306e\u4f5c\u6210\u30fb\u5909\u66f4\u304c\u5bb9\u6613\u306a\u306e\u3067\u3001<span style=\"color: #254df2\"><strong>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u306a\u304c\u3089ER\u56f3\u3092\u3059\u308b\u306e\u3082\u52b9\u7387\u7684<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u65e2\u5b58\u306e\u30e2\u30c7\u30eb\u69cb\u9020\u3092\u628a\u63e1\u3057\u305f\u3044\u5834\u5408\u306b\u3082\u6709\u52b9\u3067\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u3001Rails ERD\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u6b21\u9805\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n<h2>Rails ERD\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001Rails ERD\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h3>Graphviz(\u30b0\u30e9\u30d5\u30d3\u30ba)\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Rails ERD\u306f\u3001<span style=\"color: #54a870\"><strong>Graphviz(\u30b0\u30e9\u30d5\u30d3\u30ba)<\/strong><\/span>\u3068\u3044\u3046<span style=\"color: #254df2\"><strong>\u30b0\u30e9\u30d5\u4f5c\u6210\u30c4\u30fc\u30eb\u3092\u5185\u90e8\u7684\u306b\u4f7f\u3063\u3066\u3044\u308b<\/strong><\/span>\u306e\u3067\u3001\u3053\u308c\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3044\u308d\u3044\u308d\u306a\u74b0\u5883\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u3001Max OS X\u3068Windows\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #54a870\"><strong>Max OS X\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/span>\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/brew.sh\/index_ja\" target=\"_blank\" rel=\"noopener\">Homebrew<\/a>\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">$ brew install graphviz\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #54a870\"><strong>Windows\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/span>\u3059\u308b\u306b\u306f\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\u306e<a href=\"https:\/\/graphviz.gitlab.io\/_pages\/Download\/Download_windows.html\" target=\"_blank\" rel=\"noopener\">Download<\/a>\u30da\u30fc\u30b8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u306b\u5f93\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>msi\u30d1\u30c3\u30b1\u30fc\u30b8\u3060\u3068<span style=\"color: #254df2\"><strong>\u8a2d\u5b9a\u304c\u4e0d\u8981\u306a\u306e\u3067\u30aa\u30b9\u30b9\u30e1<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<h3>Rails ERD\u306eGem\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Gemfile\u30d5\u30a1\u30a4\u30eb\u306e<span style=\"color: #54a870\"><strong>development\u30b0\u30eb\u30fc\u30d7<\/strong><\/span>\u306b\u6b21\u306e<span style=\"color: #54a870\"><strong>gem<\/strong><\/span>\u3092\u8ffd\u8a18\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">group :development do\r\n# \u301c\u301c \u7701\u7565 \u301c\u301c\r\n  gem 'rails-erd' # \u8ffd\u8a18\r\nend<\/pre>\n<p>bundle install\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">$ bin\/bundle install\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3001Rails ERD\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01<\/p>\n<p>\u306a\u304a\u3001<span style=\"color: #54a870\"><strong>bundle install<\/strong><\/span> \u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u308b\u306e\u3067\u305c\u3072\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/19426\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/11\/20171119_ruby_bundler-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Ruby\u5165\u9580\u3011\u4eca\u66f4\u805e\u3051\u306a\u3044\uff01Ruby bundler\u3068\u306f<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>Rails ERD\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046<\/h2>\n<p>Rails ERD\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u3001<\/p>\n<ul>\n<li>bin\/bundle exec <span style=\"color: #54a870\"><strong>erd<\/strong><\/span><\/li>\n<\/ul>\n<p>\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b <span style=\"color: #54a870\"><strong>erd.pdf<\/strong><\/span> \u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #254df2\"><strong>1\u5bfe1\u306e\u95a2\u9023<\/strong><\/span>\u304c\u3042\u308b<span style=\"color: #54a870\"><strong>\u5f93\u696d\u54e1(Employee)<\/strong><\/span>\u30e2\u30c7\u30eb\u3068<span style=\"color: #54a870\"><strong>\u5f93\u696d\u54e1\u306e\u4f4f\u6240(Address)<\/strong><\/span>\u30e2\u30c7\u30eb\u306eER\u56f3\u3092\u4f5c\u6210\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u308c\u304b\u3089\u4f5c\u6210\u3059\u308bER\u56f3\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-66224 alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee11.png\" alt=\"\" width=\"269\" height=\"298\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee11.png 269w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee11-135x150.png 135w\" sizes=\"(max-width: 269px) 100vw, 269px\" \/><\/p>\n<p>\u30e2\u30c7\u30eb\u306f\u6b21\u306e\u3088\u3046\u306b\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\uff1a<\/p>\n<pre class=\"lang:ruby decode:true \">$ bin\/rails g model Employee name:string\r\n$ bin\/rails g model Address address:string employee:references\r\n$ bin\/rake db:migrate<\/pre>\n<p><span style=\"color: #0000ff\"><strong>\u591a\u91cd\u5ea6\u30921\u5bfe1<\/strong><\/span>\u3068\u3059\u308b\u305f\u3081\u306e\u30b3\u30fc\u30c9\u3092\u5f93\u696d\u54e1(Employee)\u30e2\u30c7\u30eb\u306b\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<p>\u5f93\u696d\u54e1(Employee)\u30e2\u30c7\u30eb\uff1a<\/p>\n<pre class=\"lang:ruby decode:true\">class Employee &lt; ApplicationRecord\r\n  has_one :address # \u8ffd\u8a18\r\nend\r\n<\/pre>\n<p>\u4f4f\u6240(Address)\u30e2\u30c7\u30eb\uff1a<\/p>\n<pre class=\"lang:ruby decode:true\">class Address &lt; ApplicationRecord\r\n  belongs_to :employee\r\nend\r\n<\/pre>\n<p>Rails-ERD\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">$ bin\/bundle exec erd\r\nLoading application in 'erd'...\r\nGenerating entity-relationship diagram for 5 models...\r\nDiagram saved to 'erd.pdf'.<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001<span style=\"color: #54a870\"><strong>erd.pdf<\/strong><\/span> \u304c\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u9805\u3067\u306f\u3001RAILS-ERD\u306e\u4fbf\u5229\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u300c<span style=\"color: #339966\"><strong>rails g migration<\/strong><\/span>\u300d\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/60950\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/06\/rails_g_migration-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Rails\u5165\u9580\u3011generate migration\u30b3\u30de\u30f3\u30c9\u306e\u5206\u304b\u308a\u3084\u3059\u3044\u307e\u3068\u3081<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<p>Rails\u306e\u30e2\u30c7\u30eb\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/26974\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/26974-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Rails\u5165\u9580\u3011\u30e2\u30c7\u30eb(model)\u306e\u57fa\u672c\u307e\u3068\u3081<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<h2>ER\u56f3\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>RAILS-ERD\u306b\u306f\u3001<span style=\"color: #254df2\"><strong>ER\u56f3\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u305f\u3081\u306e\u30aa\u30d7\u30b7\u30e7\u30f3<\/strong><\/span>\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u4e2d\u3067\u3082\u3088\u304f\u4f7f\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u7db2\u7f85\u3057\u305f\u306e\u3067\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n<table id=\"tablepress-606\" class=\"tablepress tablepress-id-606\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">\u30aa\u30d7\u30b7\u30e7\u30f3<\/th><th class=\"column-2\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">--title=TITLE<\/td><td class=\"column-2\">ER\u56f3\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u6307\u5b9a<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">--notation=STYLE<\/td><td class=\"column-2\">ER\u56f3\u306e\u8a18\u6cd5\u3092\u6307\u5b9a<br \/>\n\u30fbsimple(\u30c7\u30d5\u30a9\u30eb\u30c8)<br \/>\n\u30fbbachman<br \/>\n\u30fbuml<br \/>\n\u30fbcrowsfoot<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">--attributes=TYPE,...<\/td><td class=\"column-2\">ER\u56f3\u306e\u5c5e\u6027(attribute)\u8868\u793a\u5236\u5fa1<br \/>\n\u30fbcontent = \u30ad\u30fc\u5c5e\u6027\u4ee5\u5916\u3092\u8868\u793a(\u30c7\u30d5\u30a9\u30eb\u30c8)<br \/>\n\u30fbfalse =  \u5c5e\u6027\u306e\u8868\u793a\u306a\u3057<br \/>\n\u30fbprimary_keys = \u4e3b\u30ad\u30fc\u3092\u8868\u793a <br \/>\n\u30fbforeign_keys = \u5916\u90e8\u30ad\u30fc\u3092\u8868\u793a<br \/>\n\u30fbtimestamps = \u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u8868\u793a<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">--inheritance=true<\/td><td class=\"column-2\">\u30b5\u30d6\u30af\u30e9\u30b9(STI)\u3092\u8868\u793a<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">--polymorphism=true<\/td><td class=\"column-2\">\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30af\u3092\u8868\u793a<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">--only=\"Model,...\"<\/td><td class=\"column-2\">\u8868\u793a\u3059\u308b\u30e2\u30c7\u30eb\u3092\u6307\u5b9a<\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\">--exclude=\"Model,...\"<\/td><td class=\"column-2\">\u9664\u5916\u3059\u308b\u30e2\u30c7\u30eb\u3092\u6307\u5b9a<\/td>\n<\/tr>\n<tr class=\"row-9\">\n\t<td class=\"column-1\">--filename=FILENAME<\/td><td class=\"column-2\">\u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a<\/td>\n<\/tr>\n<tr class=\"row-10\">\n\t<td class=\"column-1\">--filetype=TYPE<\/td><td class=\"column-2\">\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306e\u5f62\u5f0f<br \/>\n\u30fbpdf(\u30c7\u30d5\u30a9\u30eb\u30c8)<br \/>\n\u30fbpng<br \/>\n\u30fbjpeg<br \/>\n\u30fbgif<br \/>\n\u30fbsvg<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-606 from cache -->\n<p>\u3053\u306e\u8868\u3092\u53c2\u8003\u306b\u3001\u6b21\u306e\u6761\u4ef6\u3067ER\u56f3\u3092\u4f5c\u6210\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>\u30bf\u30a4\u30c8\u30eb(&#8211;title) = \u5f93\u696d\u54e1ER\u56f3<\/li>\n<li>\u51fa\u529b\u3059\u308b\u5c5e\u6027(&#8211;attributes) = \u4e3b\u30ad\u30fc\u306e\u307f<\/li>\n<li>\u30d5\u30a1\u30a4\u30eb\u540d(&#8211;filename) = employee<\/li>\n<li>\u753b\u50cf\u306e\u7a2e\u985e(&#8211;filetype) = png<\/li>\n<\/ul>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">$ bin\/bundle exec erd --title=\"\u5f93\u696d\u54e1ER\u56f3\" --attributes=primary_keys --filename=employee --filetype=png\r\nLoading application in 'erd'...\r\nGenerating entity-relationship diagram for 5 models...\r\nDiagram saved to 'employee.png'.\r\n<\/pre>\n<p><img decoding=\"async\" class=\"size-full wp-image-66258 alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee.png\" alt=\"\" width=\"269\" height=\"298\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee.png 269w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee-135x150.png 135w\" sizes=\"(max-width: 269px) 100vw, 269px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u7d50\u679c\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u5225\u306eER\u56f3\u30b5\u30f3\u30d7\u30eb<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001<span style=\"color: #254df2\"><strong>\u30e2\u30c7\u30eb\u306e\u95a2\u9023\u306b\u5fdc\u3058\u305f\u306eER\u56f3\u306e\u30b5\u30f3\u30d7\u30eb<\/strong><\/span>\u3092\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<h3>1\u5bfe\u591a\u95a2\u9023\u306eER\u56f3(hash_many)<\/h3>\n<p><span style=\"color: #0000ff\"><strong>1\u5bfe\u591a\u306e\u591a\u91cd\u5ea6\u306e\u5834\u5408\u306eER\u56f3<\/strong><\/span>\u306f\u3069\u3046\u306a\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001<span style=\"color: #54a870\"><strong>\u5f93\u696d\u54e1(Employee)<\/strong><\/span>\u3068<span style=\"color: #54a870\"><strong>\u5f93\u696d\u54e1\u306e\u4f4f\u6240(Address)<\/strong><\/span>\u3092\u4f7f\u3063\u3066\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">class Employee &lt; ApplicationRecord\r\n  has_many :address # has_one \u304b\u3089\u5909\u66f4\r\nend<\/pre>\n<p><img decoding=\"async\" class=\"size-full wp-image-66259 alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee2.png\" alt=\"\" width=\"276\" height=\"298\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee2.png 276w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee2-139x150.png 139w\" sizes=\"(max-width: 276px) 100vw, 276px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u5f93\u696d\u54e1(Employee)\u3068\u5f93\u696d\u54e1\u306e\u4f4f\u6240(Address)\u306f<span style=\"color: #254df2\"><strong>1\u5bfe\u591a\u3067\u3042\u308b\u3053\u3068\u304cER\u56f3\u304b\u3089\u3082\u78ba\u8a8d<\/strong><\/span>\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h3>\u591a\u5bfe\u591a\u95a2\u9023\u306eER\u56f3(has_many :through)<\/h3>\n<p><span style=\"color: #339966\"><strong><span style=\"color: #54a870\"><strong>\u591a\u5bfe\u591a\u306e\u95a2\u9023<\/strong><\/span><\/strong><\/span>\u3068\u306f\u3001\u4f8b\u3048\u3070\u3001<span style=\"color: #254df2\"><strong><span style=\"color: #54a870\"><strong>\u5f93\u696d\u54e1(Employee)<\/strong><\/span><\/strong><\/span>\u304c<span style=\"color: #54a870\"><strong>\u90e8\u7f72(Dept)<\/strong><\/span>\u306b\u8907\u6570\u6240\u5c5e\u3067\u304d\u308b\u5834\u5408\u3067\u3001\u55b6\u696d\u3068\u7dcf\u52d9\u3092\u517c\u52d9\u3059\u308b\u5834\u9762\u3092\u60f3\u50cf\u3059\u308b\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u3088\u3046\u306aER\u56f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-66260 alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee3.png\" alt=\"\" width=\"499\" height=\"290\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee3.png 499w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee3-150x87.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee3-300x174.png 300w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/p>\n<p>\u30e2\u30c7\u30eb\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">$ bin\/rails g model Dept name:string\r\n$ bin\/rails g model EmployeeDept employee:references dept:references\r\n$ bin\/rake db:migrate\r\n<\/pre>\n<p>\u591a\u5bfe\u591a\u306e\u95a2\u9023\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u30e2\u30c7\u30eb\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<p>\u5f93\u696d\u54e1(Employee)\u30e2\u30c7\u30eb\uff1a<\/p>\n<pre class=\"lang:ruby decode:true\">class Employee &lt; ApplicationRecord\r\n  has_many :address\r\n  has_many :employee_depts  # \u8ffd\u8a18\r\n  has_many :depts, through: :employee_depts  # \u8ffd\u8a18\r\nend\r\n<\/pre>\n<p>\u90e8\u7f72(Dept)\u30e2\u30c7\u30eb\uff1a<\/p>\n<pre class=\"lang:ruby decode:true\">class Dept &lt; ApplicationRecord\r\n  has_many :employee_depts  # \u8ffd\u8a18\r\n  has_many :employee, through: :employee_depts  # \u8ffd\u8a18\r\nend<\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001RAILS-ERD\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">$ bin\/bundle exec erd --title=\"\u5f93\u696d\u54e1ER\u56f3 \u591a\u5bfe\u591a\" --filename=employee3 --filetype=png --exclude=Address\r\n<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f<span style=\"color: #f75959\"><strong>\u5206\u304b\u308a\u306b\u304f\u3044\u30e2\u30c7\u30eb\u306e\u95a2\u9023<\/strong><\/span>\u3082<span style=\"color: #254df2\"><strong><span style=\"color: #254df2\"><strong>ER\u56f3\u306b\u3059\u308b\u3053\u3068\u3067\u7406\u89e3\u3057\u3084\u3059\u304f\u306a<\/strong><\/span>\u308b<\/strong><\/span>\u4e8b\u304c\u308f\u304b\u3063\u3066\u3044\u305f\u3060\u3051\u305f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>STI(\u5358\u4e00\u30c6\u30fc\u30d6\u30eb\u7d99\u627f)\u306eER\u56f3<\/h3>\n<p>Rails-ERD\u306f<span style=\"color: #254df2\"><strong><span style=\"color: #254df2\"><strong>STI(\u5358\u4e00\u30c6\u30fc\u30d6\u30eb\u7d99\u627f)<\/strong><\/span>\u3082\u51fa\u529b\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p><span style=\"color: #54a870\"><strong>STI<\/strong><\/span>\u3068\u306f\u3001\u30e2\u30c7\u30eb\u304b\u3089\u7d99\u627f\u3057\u305f\u30b5\u30d6\u30af\u30e9\u30b9\u304c\u8907\u6570\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u306f1\u3064\u3067\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001<span style=\"color: #54a870\"><strong>\u52d5\u7269(Animal)<\/strong><\/span>\u3092\u7d99\u627f\u3057\u305f<span style=\"color: #54a870\"><strong>\u72ac(Dog)<\/strong><\/span>\u3068<span style=\"color: #54a870\"><strong>\u732b(Cat)<\/strong><\/span>\u30e2\u30c7\u30eb\u3092\u60f3\u50cf\u3059\u308b\u3068\u308f\u304b\u308a\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>ER\u56f3\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-66261 alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee5.png\" alt=\"\" width=\"499\" height=\"290\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee5.png 499w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee5-150x87.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee5-300x174.png 300w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/p>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">$ bin\/rails g model Animal name:string type:string\r\n$ bin\/rake db:migrate\r\n<\/pre>\n<p>\u52d5\u7269(Animal)\u3001\u72ac(Dog)\u3001\u732b(Cat)\u30e2\u30c7\u30eb\uff1a<\/p>\n<pre class=\"lang:ruby decode:true\">class Animal &lt; ApplicationRecord\r\nend\r\n\r\nclass Dog &lt; Animal\r\nend\r\n\r\nclass Cat &lt; Animal\r\nend<\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001RAILS-ERD\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>STI\u306e\u30e2\u30c7\u30eb\u3092\u51fa\u529b\u3059\u308b\u305f\u3081\u306b\u306f\u3001<span style=\"color: #54a870\"><strong>inheritance=true<\/strong><\/span><span style=\"color: #54a870\"><strong>\u30aa\u30d7\u30b7\u30e7\u30f3<\/strong><\/span>\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e<span style=\"color: #f75959\"><strong>\u30aa\u30d7\u30b7\u30e7\u30f3\u8ffd\u52a0\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u306f\u3001\u89aa\u30af\u30e9\u30b9\u306e\u307f<\/strong><\/span>\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">bin\/bundle exec erd --title=\"STI\u306eER\u56f3\" --filename=employee5 --filetype=png --inheritance=true --only=\"Animal,Dog,Cat\"<\/pre>\n<p>\u4eca\u56de\u306f\u6307\u5b9a\u3057\u305f\u30e2\u30c7\u30eb\u306e\u307f\u3092\u51fa\u529b\u3057\u305f\u3044\u305f\u3081\u3001<span style=\"color: #54a870\"><strong>&#8211;only\u30aa\u30d7\u30b7\u30e7\u30f3<\/strong><\/span>\u3092\u8ffd\u52a0\u3057\u3066Rails-ERD\u3092\u5b9f\u884c\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3064\u3065\u3044\u3066\u3001\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30af\u95a2\u9023\u306eER\u56f3\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h3>\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30af\u95a2\u9023\u306eER\u56f3<\/h3>\n<p>Rails-ERD\u306f\u3001<span style=\"color: #54a870\"><strong>&#8211;polymorphism=true \u30aa\u30d7\u30b7\u30e7\u30f3<\/strong><\/span>\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001<span style=\"color: #f75959\"><strong><span style=\"color: #254df2\"><strong>\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30af\u95a2\u9023\u306e\u30e2\u30c7\u30eb\u306eER\u56f3\u3082\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/strong><\/span><\/p>\n<p>\u51fa\u529b\u7d50\u679c\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-66264 alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee6.png\" alt=\"\" width=\"730\" height=\"290\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee6.png 730w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee6-150x60.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee6-300x119.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/employee6-640x254.png 640w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">$ bin\/rails g model Employer name:string\r\n$ bin\/rails g model Message messageable:references{polymorphic}\r\n$ bin\/rake db:migrate<\/pre>\n<p>\u30e1\u30c3\u30bb\u30fc\u30b8(Message)\u30e2\u30c7\u30eb<\/p>\n<pre class=\"lang:ruby decode:true \">class Message &lt; ApplicationRecord\r\n  belongs_to :messageable, polymorphic: true\r\nend<\/pre>\n<p>\u5f93\u696d\u54e1(\u30e2\u30c7\u30eb)<\/p>\n<pre class=\"lang:ruby decode:true \">class Employee &lt; ApplicationRecord\r\n  has_many :message, as: :messageable\r\nend<\/pre>\n<p>\u96c7\u7528\u8005(Employer)\u30e2\u30c7\u30eb<\/p>\n<pre class=\"lang:ruby decode:true \">class Employer &lt; ApplicationRecord\r\n  has_many :message, as: :messageable\r\nend<\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001RAILS-ERD\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">$ bin\/bundle exec erd --title=\"\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30afER\u56f3\" --filename=employee6 --filetype=png --polymorphism=true --only=\"Employee,Employer,Message\"<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30af\u95a2\u9023\u306e\u30e2\u30c7\u30eb\u3067\u3082\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\uff01<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3044\u304b\u304b\u3067\u3057\u305f\u304b\uff1f<\/p>\n<p>\u4eca\u56de\u306f<span style=\"color: #54a870\"><strong>Rails-ERD<\/strong><\/span>\u3067ER\u56f3\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Rails-ERD\u3092\u4f7f\u3046\u3068<span style=\"color: #254df2\"><strong>Rails\u306e\u30e2\u30c7\u30eb\u304b\u3089ER\u56f3\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>STI(\u5358\u4e00\u30c6\u30fc\u30d6\u30eb\u7d99\u627f)\u3084\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30af\u95a2\u9023\u306a\u3069\u306e\u9ad8\u5ea6\u306a\u30e2\u30c7\u30eb\u3067\u3082\u4f7f\u3048\u308b\u306e\u3067\u3001\u305c\u3072\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001Rails-ERDr\u306e\u4f7f\u3044\u65b9\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3053\u306e\u8a18\u4e8b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30aa\u30aa\u30a4\u30b7\u3067\u3059\u3002 Rails ERD\u3092\u3054\u5b58\u77e5\u3067\u3059\u304b\uff1f Rails ERD\u3092\u4f7f\u3046\u3068Rails\u306e\u30e2\u30c7\u30eb\u304b\u3089ER\u56f3\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u4eca\u56de\u306f\u3001 Rails ERD\u3068\u306f Rails ER [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":66763,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2352],"tags":[1760,14],"class_list":["post-66196","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-study","tag-erd","tag-ruby-on-rails"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/66196\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/66196\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"1970-01-01T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:50:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/image-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85\",\"datePublished\":\"1970-01-01T00:00:00+00:00\",\"dateModified\":\"2024-05-06T02:50:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196\"},\"wordCount\":194,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/image-1.jpg\",\"keywords\":[\"erd\",\"Ruby on Rails\"],\"articleSection\":[\"Ruby\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196\",\"name\":\"\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/image-1.jpg\",\"datePublished\":\"1970-01-01T00:00:00+00:00\",\"dateModified\":\"2024-05-06T02:50:18+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/image-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/image-1.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/66196#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/66196","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/66196","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"1970-01-01T00:00:00+00:00","article_modified_time":"2024-05-06T02:50:18+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/image-1.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/66196#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/66196"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85","datePublished":"1970-01-01T00:00:00+00:00","dateModified":"2024-05-06T02:50:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/66196"},"wordCount":194,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/66196#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/image-1.jpg","keywords":["erd","Ruby on Rails"],"articleSection":["Ruby\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/66196","url":"https:\/\/www.sejuku.net\/blog\/66196","name":"\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/66196#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/66196#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/image-1.jpg","datePublished":"1970-01-01T00:00:00+00:00","dateModified":"2024-05-06T02:50:18+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/66196#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/66196"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/66196#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/image-1.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/image-1.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/66196#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Rails\u5165\u9580\u3011Rails ERD\u3067ER\u56f3\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3088\u3046\uff01\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u7db2\u7f85"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/66196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=66196"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/66196\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/66763"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=66196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=66196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=66196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}