{"id":117797,"date":"2024-03-23T11:52:06","date_gmt":"2024-03-23T02:52:06","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/"},"modified":"2024-04-05T20:33:19","modified_gmt":"2024-04-05T11:33:19","slug":"mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/","title":{"rendered":"MySQL\u3068Ruby on Rails\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>MySQL\u3068Ruby on Rails\u3092\u5229\u7528\u3057\u3066\u7c21\u5358\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\uff1a\u958b\u767a\u74b0\u5883\u306bMySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u304a\u4f7f\u3044\u306e\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u5fdc\u3058\u3066\u3001\u516c\u5f0f\u306eMySQL\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u304b\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\uff1a\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u65b0\u3057\u3044Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>$ rails new survey_app\r\n<\/code><\/pre>\n<ol>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u306e\u8a2d\u5b9a: \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b config\/database.yml \u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a\u304c\u6b63\u3057\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u3001MySQL \u306e\u8a8d\u8a3c\u60c5\u5831\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30a2\u30f3\u30b1\u30fc\u30c8\u30e2\u30c7\u30eb\u3068\u5bfe\u5fdc\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>$ rails generate model Survey title:string\r\n$ rails generate model Question content:string survey:references\r\n$ rails generate model Option content:string question:references\r\n$ rails db:migrate\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001Survey\u3001Question\u3001Option\u3068\u3044\u3046\u540d\u524d\u306e\u30e2\u30c7\u30eb\u304c\u751f\u6210\u3055\u308c\u3001\u305d\u308c\u306b\u95a2\u9023\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30a2\u30d7\u30ea\/\u30e2\u30c7\u30eb<\/li>\n<li>app\/models\/survey.rb<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">Survey<\/span> &lt; <span class=\"hljs-title class_ inherited__\">ApplicationRecord<\/span>\r\nhas_many <span class=\"hljs-symbol\">:questions<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<\/code><\/pre>\n<p>app\/models\/question.rb\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">Question<\/span> &lt; <span class=\"hljs-title class_ inherited__\">ApplicationRecord<\/span>\r\nbelongs_to <span class=\"hljs-symbol\">:survey<\/span>\r\nhas_many <span class=\"hljs-symbol\">:options<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<\/code><\/pre>\n<p>app\/models\/option.rb \u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">Option<\/span> &lt; <span class=\"hljs-title class_ inherited__\">ApplicationRecord<\/span>\r\nbelongs_to <span class=\"hljs-symbol\">:question<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3068\u30d3\u30e5\u30fc\u3092\u751f\u6210\u3059\u308b\uff1a\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u8a2d\u554f\u3092\u4f5c\u6210\u3001\u8868\u793a\u3001\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3068\u30d3\u30e5\u30fc\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>$ rails generate controller Surveys\r\n$ rails generate controller Questions\r\n<\/code><\/pre>\n<ol>\n<li>config\/routes.rb \u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u306a\u8a00\u3044\u63db\u3048<\/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\">:surveys<\/span> <span class=\"hljs-keyword\">do<\/span>\r\nresources <span class=\"hljs-symbol\">:questions<\/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<\/li>\n<li>app\/controllers\/surveys_controller.rb<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">SurveysController<\/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\">@surveys<\/span> = <span class=\"hljs-title class_\">Survey<\/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\">@survey<\/span> = <span class=\"hljs-title class_\">Survey<\/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\">@survey<\/span> = <span class=\"hljs-title class_\">Survey<\/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\">@survey<\/span> = <span class=\"hljs-title class_\">Survey<\/span>.new(survey_params)\r\n<span class=\"hljs-keyword\">if<\/span> <span class=\"hljs-variable\">@survey<\/span>.save\r\nredirect_to <span class=\"hljs-variable\">@survey<\/span>, <span class=\"hljs-symbol\">notice:<\/span> <span class=\"hljs-string\">'Survey was successfully created.'<\/span>\r\n<span class=\"hljs-keyword\">else<\/span>\r\nrender <span class=\"hljs-symbol\">: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_\">survey_params<\/span>\r\nparams.<span class=\"hljs-keyword\">require<\/span>(<span class=\"hljs-symbol\">:survey<\/span>).permit(<span class=\"hljs-symbol\">:title<\/span>)\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<span class=\"hljs-keyword\">end<\/span>\r\n<\/code><\/pre>\n<p>\u540c\u69d8\u306e\u30b3\u30fc\u30c9\u3092 app\/controllers\/questions_controller.rb \u306b\u8ffd\u52a0\u3057\u3066\u3001\u8cea\u554f\u95a2\u9023\u306e\u64cd\u4f5c\u3092\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30a2\u30d7\u30ea\u306e\u30d3\u30e5\u30fc\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08app\/views\uff09\u3067\u3001\u30d3\u30e5\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4f8b\u3068\u3057\u3066\u3001app\/views\/surveys \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b index.html.erb\u3001show.html.erb\u3001new.html.erb \u306e\u5404\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u30a2\u30d7\u30ea\u306e\u5b9f\u884c: \u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066Rails\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059:<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>$ rails server\r\n<\/code><\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u300chttp:\/\/localhost:3000\/surveys\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30a2\u30f3\u30b1\u30fc\u30c8\u4e00\u89a7\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u5b9f\u88c5\u306b\u304a\u3051\u308b\u7c21\u5358\u306a\u4f8b\u306e 1 \u3064\u3067\u3042\u308a\u3001\u3054\u81ea\u8eab\u306e\u30cb\u30fc\u30ba\u3084\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u62e1\u5f35\u304a\u3088\u3073\u6539\u5584\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL\u3068Ruby on Rails\u3092\u5229\u7528\u3057\u3066\u7c21\u5358\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002 MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\uff1a\u958b\u767a\u74b0\u5883\u306bMySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u304a\u4f7f\u3044\u306e [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-117797","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\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\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\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\/\" \/>\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\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"MySQL\u3068Ruby on Rails\u3092\u5229\u7528\u3057\u3066\u7c21\u5358\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002 MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\uff1a\u958b\u767a\u74b0\u5883\u306bMySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u304a\u4f7f\u3044\u306e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3068ruby-on-rails\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-23T02:52:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-05T11:33:19+00:00\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\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=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\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%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/\",\"name\":\"MySQL\u3068Ruby on Rails\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-23T02:52:06+00:00\",\"dateModified\":\"2024-04-05T11:33:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/#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\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\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\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"MySQL\u3068Ruby on Rails\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\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\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\/","og_locale":"ja_JP","og_type":"article","og_title":"MySQL\u3068Ruby on Rails\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","og_description":"MySQL\u3068Ruby on Rails\u3092\u5229\u7528\u3057\u3066\u7c21\u5358\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002 MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\uff1a\u958b\u767a\u74b0\u5883\u306bMySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u304a\u4f7f\u3044\u306e [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3068ruby-on-rails\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-23T02:52:06+00:00","article_modified_time":"2024-04-05T11:33:19+00:00","author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\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%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/","name":"MySQL\u3068Ruby on Rails\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-23T02:52:06+00:00","dateModified":"2024-04-05T11:33:19+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/#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\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30f3\u30b1\u30fc\u30c8\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\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%a2%e3%83%b3%e3%82%b1%e3%83%bc%e3%83%88\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/117797","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=117797"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/117797\/revisions"}],"predecessor-version":[{"id":323661,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/117797\/revisions\/323661"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=117797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=117797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=117797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}