{"id":122277,"date":"2024-03-24T05:52:52","date_gmt":"2024-03-23T20:52:52","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2024-03-28T14:32:14","modified_gmt":"2024-03-28T05:32:14","slug":"mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"MySQL\u3068Ruby on Rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u6cbf\u3063\u3066\u3001MySQL \u3068 Ruby on Rails \u3092\u4f7f\u7528\u3057\u305f\u7c21\u5358\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u958b\u767a\u3067\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>Ruby\u3068Ruby on Rails\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a:<\/li>\n<\/ol>\n<ol>\n<li>Ruby\u3068RubyGems\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002Ruby \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f https:\/\/www.ruby-lang.org\/ \u304b\u3089\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u3044\u3066\u3001\u300cgem install rails\u300d\u30b3\u30de\u30f3\u30c9\u3067Rails\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/li>\n<li>rails new my_forum\u3067\u65b0\u3057\u3044Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210<\/li>\n<li>\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u79fb\u52d5\uff1acd my_forum<\/li>\n<\/ol>\n<ol>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u3092\u78ba\u7acb\u3059\u308b\uff1a<\/li>\n<\/ol>\n<ol>\n<li>config\/database.yml\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002development\u3068test\u74b0\u5883\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-attr\">development:<\/span>\r\n<span class=\"hljs-attr\">adapter:<\/span> <span class=\"hljs-string\">mysql2<\/span>\r\n<span class=\"hljs-attr\">encoding:<\/span> <span class=\"hljs-string\">utf8<\/span>\r\n<span class=\"hljs-attr\">database:<\/span> <span class=\"hljs-string\">my_forum_development<\/span>\r\n<span class=\"hljs-attr\">pool:<\/span> <span class=\"hljs-number\">5<\/span>\r\n<span class=\"hljs-attr\">username:<\/span> <span class=\"hljs-string\">your_mysql_username<\/span>\r\n<span class=\"hljs-attr\">password:<\/span> <span class=\"hljs-string\">your_mysql_password<\/span>\r\n<span class=\"hljs-attr\">host:<\/span> <span class=\"hljs-string\">localhost<\/span>\r\n<span class=\"hljs-attr\">test:<\/span>\r\n<span class=\"hljs-attr\">adapter:<\/span> <span class=\"hljs-string\">mysql2<\/span>\r\n<span class=\"hljs-attr\">encoding:<\/span> <span class=\"hljs-string\">utf8<\/span>\r\n<span class=\"hljs-attr\">database:<\/span> <span class=\"hljs-string\">my_forum_test<\/span>\r\n<span class=\"hljs-attr\">pool:<\/span> <span class=\"hljs-number\">5<\/span>\r\n<span class=\"hljs-attr\">username:<\/span> <span class=\"hljs-string\">your_mysql_username<\/span>\r\n<span class=\"hljs-attr\">password:<\/span> <span class=\"hljs-string\">your_mysql_password<\/span>\r\n<span class=\"hljs-attr\">host:<\/span> <span class=\"hljs-string\">localhost<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>\u63b2\u793a\u677f\u95a2\u9023\u30e2\u30c7\u30eb\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/li>\n<\/ol>\n<ol>\n<li>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066Post\u3068\u3044\u3046\u540d\u524d\u306e\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u3001\u5bfe\u5fdc\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059: rails generate model Post title:string content:text<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\uff1arails db:migrate<\/li>\n<\/ol>\n<ol>\n<li>\u63d0\u5427\u30e2\u30c7\u30eb\u306e\u95a2\u9023\u4ed8\u3051\u3092\u8a2d\u5b9a\u3059\u308b\uff1a<\/li>\n<\/ol>\n<ol>\n<li>app\/models\/post.rb\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">Post<\/span> &lt; <span class=\"hljs-title class_ inherited__\">ApplicationRecord<\/span>\r\nhas_many <span class=\"hljs-symbol\">:comments<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>\u30b3\u30e1\u30f3\u30c8\u30e2\u30c7\u30eb\u3068\u95a2\u9023\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u306e\u4f5c\u6210\uff1a<\/li>\n<\/ol>\n<ol>\n<li>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066Comment\u3068\u3044\u3046\u540d\u524d\u306e\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u3001\u5bfe\u5fdc\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059: rails generate model Comment content:text post:references<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c: rails db:migrate<\/li>\n<\/ol>\n<ol>\n<li>\u30b3\u30e1\u30f3\u30c8\u30e2\u30c7\u30eb\u306e\u95a2\u9023\u4ed8\u3051\u3092\u8a2d\u5b9a\u3059\u308b\uff1a<\/li>\n<\/ol>\n<ol>\n<li>\u30a2\u30d7\u30ea\u306emodels\/comment.rb\u3092\u958b\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">Comment<\/span> &lt; <span class=\"hljs-title class_ inherited__\">ApplicationRecord<\/span>\r\nbelongs_to <span class=\"hljs-symbol\">:post<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>\u63b2\u793a\u677f\u3068\u30b3\u30e1\u30f3\u30c8\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3068\u30d3\u30e5\u30fc\u3092\u4f5c\u308b\uff1a<\/li>\n<\/ol>\n<ol>\n<li>rails generate controller Posts index show new create \u3067Posts \u3068\u547c\u3070\u308c\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<li>rails generate controller Comments create\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001Comments\u3068\u3044\u3046\u540d\u524d\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>app\/controllers\/posts_controller.rb \u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">PostsController<\/span> &lt; <span class=\"hljs-title class_ inherited__\">ApplicationController<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">index<\/span>\r\n<span class=\"hljs-variable\">@posts<\/span> = <span class=\"hljs-title class_\">Post<\/span>.all\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">show<\/span>\r\n<span class=\"hljs-variable\">@post<\/span> = <span class=\"hljs-title class_\">Post<\/span>.find(params[<span class=\"hljs-symbol\">:id<\/span>])\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">new<\/span>\r\n<span class=\"hljs-variable\">@post<\/span> = <span class=\"hljs-title class_\">Post<\/span>.new\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">create<\/span>\r\n<span class=\"hljs-variable\">@post<\/span> = <span class=\"hljs-title class_\">Post<\/span>.new(post_params)\r\n<span class=\"hljs-keyword\">if<\/span> <span class=\"hljs-variable\">@post<\/span>.save\r\nredirect_to <span class=\"hljs-variable\">@post<\/span>\r\n<span class=\"hljs-keyword\">else<\/span>\r\nrender <span class=\"hljs-string\">'new'<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<span class=\"hljs-keyword\">private<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">post_params<\/span>\r\nparams.<span class=\"hljs-keyword\">require<\/span>(<span class=\"hljs-symbol\">:post<\/span>).permit(<span class=\"hljs-symbol\">:title<\/span>, <span class=\"hljs-symbol\">:content<\/span>)\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>app\/controllers\/comments_controller.rb \u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">CommentsController<\/span> &lt; <span class=\"hljs-title class_ inherited__\">ApplicationController<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">create<\/span>\r\n<span class=\"hljs-variable\">@post<\/span> = <span class=\"hljs-title class_\">Post<\/span>.find(params[<span class=\"hljs-symbol\">:post_id<\/span>])\r\n<span class=\"hljs-variable\">@comment<\/span> = <span class=\"hljs-variable\">@post<\/span>.comments.create(comment_params)\r\nredirect_to <span class=\"hljs-variable\">@post<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<span class=\"hljs-keyword\">private<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">comment_params<\/span>\r\nparams.<span class=\"hljs-keyword\">require<\/span>(<span class=\"hljs-symbol\">:comment<\/span>).permit(<span class=\"hljs-symbol\">:content<\/span>)\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>Rails\u306e\u30d3\u30e5\u30fc\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u69cb\u6587\u3092\u53c2\u8003\u306b\u3057\u3066\u3001\u5bfe\u5fdc\u3059\u308b\u30d3\u30e5\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ol>\n<ol>\n<li>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u69cb\u6210\uff1a<\/li>\n<\/ol>\n<ol>\n<li>config\/routes.rb\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u3001\u4e0b\u8a18\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-title class_\">Rails<\/span>.application.routes.draw <span class=\"hljs-keyword\">do<\/span>\r\nresources <span class=\"hljs-symbol\">:posts<\/span> <span class=\"hljs-keyword\">do<\/span>\r\nresources <span class=\"hljs-symbol\">:comments<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>Rails\u30b5\u30fc\u30d0\u306e\u5b9f\u884c\uff1a<\/li>\n<\/ol>\n<ol>\n<li>Rails\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044: rails s<\/li>\n<li>http:\/\/localhost:3000\/posts \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u63b2\u793a\u677f\u4e00\u89a7\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u306b\u306f<\/li>\n<\/ol>\n<p>\u3053\u308c\u3067\u63b2\u793a\u677f\u6a5f\u80fd\u306e\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u304c\u5b9f\u88c5\u3067\u304d\u305f\u306e\u3067\u3001\u30cb\u30fc\u30ba\u306b\u5408\u308f\u305b\u3066\u6a5f\u80fd\u8ffd\u52a0\u3084UI\u306e\u6539\u5584\u3092\u884c\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u6cbf\u3063\u3066\u3001MySQL \u3068 Ruby on Rails \u3092\u4f7f\u7528\u3057\u305f\u7c21\u5358\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u958b\u767a\u3067\u304d\u307e\u3059\u3002 Ruby\u3068Ruby on Rails\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a: Ruby\u3068RubyGems\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3057 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-122277","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL\u3068Ruby on Rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\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.silicloud.com\/ja\/blog\/mysql\u3068ruby-on-rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL\u3068Ruby on Rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u6cbf\u3063\u3066\u3001MySQL \u3068 Ruby on Rails \u3092\u4f7f\u7528\u3057\u305f\u7c21\u5358\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u958b\u767a\u3067\u304d\u307e\u3059\u3002 Ruby\u3068Ruby on Rails\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a: Ruby\u3068RubyGems\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3057 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3068ruby-on-rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-23T20:52:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-28T05:32:14+00:00\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u84ee, \u7ffc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"MySQL\u3068Ruby on Rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-23T20:52:52+00:00\",\"dateModified\":\"2024-03-28T05:32:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL\u3068Ruby on Rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"MySQL\u3068Ruby on Rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","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.silicloud.com\/ja\/blog\/mysql\u3068ruby-on-rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"MySQL\u3068Ruby on Rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","og_description":"\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u6cbf\u3063\u3066\u3001MySQL \u3068 Ruby on Rails \u3092\u4f7f\u7528\u3057\u305f\u7c21\u5358\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u958b\u767a\u3067\u304d\u307e\u3059\u3002 Ruby\u3068Ruby on Rails\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a: Ruby\u3068RubyGems\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3057 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3068ruby-on-rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-23T20:52:52+00:00","article_modified_time":"2024-03-28T05:32:14+00:00","author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"MySQL\u3068Ruby on Rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-23T20:52:52+00:00","dateModified":"2024-03-28T05:32:14+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"MySQL\u3068Ruby on Rails\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u63b2\u793a\u677f\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%81%a7%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e6%8e%b2%e7%a4%ba%e6%9d%bf%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/122277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=122277"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/122277\/revisions"}],"predecessor-version":[{"id":206718,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/122277\/revisions\/206718"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=122277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=122277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=122277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}