{"id":1839,"date":"2013-01-24T01:41:34","date_gmt":"2013-01-23T16:41:34","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=1839"},"modified":"2018-11-14T16:33:56","modified_gmt":"2018-11-14T07:33:56","slug":"ruby-on-rails-4-0-release-notes-%e3%82%92%e8%aa%ad%e3%82%80","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2013\/01\/24\/ruby-on-rails-4-0-release-notes-%e3%82%92%e8%aa%ad%e3%82%80\/","title":{"rendered":"Ruby on Rails 4.0 Release Notes \u3092\u8aad\u3080"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><a title=\"Ruby on Rails 4.0 Release Notes\" href=\"http:\/\/edgeguides.rubyonrails.org\/4_0_release_notes.html\">Ruby on Rails 4.0 Release Notes<\/a> \u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b63\u5f0f\u30ea\u30ea\u30fc\u30b9\u307e\u3067\u306b\u5909\u66f4\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u5927\u304d\u304f\u5909\u308f\u308b\u3053\u3068\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u306e\u3046\u3061\u306b\u3056\u3063\u3068\u773a\u3081\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u203b\u4ee5\u4e0b\u3001<a title=\"Ruby on Rails 4.0 Release Notes\" href=\"http:\/\/edgeguides.rubyonrails.org\/4_0_release_notes.html\">Ruby on Rails 4.0 Release Notes<\/a> \u306e\u9805\u76ee\u3068\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\uff08\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u65b9\u6cd5\u306a\u3069\u306f\u7701\u7565\u3057\u307e\u3057\u305f\uff09\u3002<\/p>\n<p>\u203b2013\/2\/15 \u6700\u65b0\u60c5\u5831\u306b\u5408\u308f\u305b\u3066\u5185\u5bb9\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002\u300c\u203b2013\/2\/15\u8ffd\u8a18: xxx\u300d\u3068\u3044\u3046\u5f62\u3067\u8ffd\u8a18\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u203b2013\/6\/15 Rails 4.0.0 rc2 \u304c\u51fa\u307e\u3057\u305f\u306e\u3067\u3001\u6700\u65b0\u60c5\u5831\u306b\u5408\u308f\u305b\u3066\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002\u300c\u203b2013\/6\/15\u8ffd\u8a18\uff1axxx\u300d\u3068\u3044\u3046\u5f62\u3067\u8ffd\u8a18\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30cf\u30a4\u30e9\u30a4\u30c8<\/h2>\n<ul>\n<li><del>Ruby 1.9.3 \u4ee5\u964d\u3092\u30b5\u30dd\u30fc\u30c8<\/del> Ruby2.0\u63a8\u5968\u3001Ruby1.9.3\u4ee5\u964d\u3092\u30b5\u30dd\u30fc\u30c8 \uff08\u203b2013\/2\/15\u8ffd\u8a18: Ruby2.0 \u63a8\u5968\u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\uff01\uff09<\/li>\n<li>Strong Parameters (<a title=\"strong_parameters\" href=\"https:\/\/github.com\/rails\/strong_parameters\">Gem \u30e9\u30a4\u30d6\u30e9\u30ea\u3060\u3063\u305f\u3082\u306e<\/a>\u304c Rails \u30b3\u30a2\u306b\u53d6\u308a\u8fbc\u307e\u308c\u305f\uff09<\/li>\n<li>Turbolinks (<a title=\"turbolinks\" href=\"https:\/\/github.com\/rails\/turbolinks\">https:\/\/github.com\/rails\/turbolinks<\/a>)<\/li>\n<li>Russian Doll Caching (<a title=\"cache_digests\" href=\"https:\/\/github.com\/rails\/cache_digests\">https:\/\/github.com\/rails\/cache_digests<\/a>)<\/li>\n<li><del>Asynchronous Mailers (\u975e\u540c\u671f\u30e1\u30fc\u30eb\u9001\u4fe1)<\/del> \uff08\u203b2013\/2\/15\u8ffd\u8a18: \u554f\u984c\u304c\u3042\u3063\u305f\u3088\u3046\u3067\u3001\u4e00\u65e6\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u304b\u3089\u9664\u5916\u3055\u308c\u307e\u3057\u305f\u3002\uff09<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>1. Rails 4.0 \u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/h2>\n<p>\uff08\u7701\u7565\uff09<\/p>\n<p>&nbsp;<\/p>\n<h2>2. Rails 4.0 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210<\/h2>\n<p>\uff08\u7701\u7565\uff09<\/p>\n<p>&nbsp;<\/p>\n<h2>3. \u30e1\u30b8\u30e3\u30fc\u306a\u6a5f\u80fd<\/h2>\n<p>\uff08\u7701\u7565: <a title=\"Ruby on Rails 4.0 Release Notes\" href=\"http:\/\/edgeguides.rubyonrails.org\/4_0_release_notes.html\">Ruby on Rails 4.0 Release Notes<\/a>\u00a0\u306b\u3042\u308b\u56f3\u3092\u898b\u305f\u307b\u3046\u304c\u65e9\u3044\u3067\u3059\uff09<\/p>\n<p>&nbsp;<\/p>\n<h2>4. Gem \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u5207\u308a\u51fa\u3055\u308c\u305f\u6a5f\u80fd<\/h2>\n<p>\u4ee5\u4e0b\u306e\u6a5f\u80fd\u306f Gem \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u5207\u308a\u51fa\u3055\u308c\u305f\u306e\u3067\u3001\u4f7f\u7528\u3057\u305f\u3044\u5834\u5408\u306f Gemfile \u306b\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li dir=\"ltr\"><a title=\"activerecord-deprecated_finders\" href=\"https:\/\/github.com\/rails\/activerecord-deprecated_finders\">Hash-based &amp; Dynamic finder methods<\/a><\/li>\n<li dir=\"ltr\"><a title=\"protected_attributes\" href=\"https:\/\/github.com\/rails\/protected_attributes\">Mass assignment protection in Active Record models<\/a><\/li>\n<li dir=\"ltr\"><a title=\"rails-observers\" href=\"https:\/\/github.com\/rails\/rails-observers\">ActiveRecord::SessionStore<\/a><\/li>\n<li dir=\"ltr\"><a title=\"rails-observers\" href=\"https:\/\/github.com\/rails\/rails-observers\">Active Record Observers<\/a><\/li>\n<li dir=\"ltr\"><a title=\"activeresource\" href=\"https:\/\/github.com\/rails\/activeresource\">Active Resource<\/a><\/li>\n<li dir=\"ltr\"><a title=\"actionpack-action_caching\" href=\"https:\/\/github.com\/rails\/actionpack-action_caching\">Action Caching<\/a><\/li>\n<li dir=\"ltr\"><a title=\"actionpack-page_caching\" href=\"https:\/\/github.com\/rails\/actionpack-page_caching\">Page Caching<\/a><\/li>\n<li dir=\"ltr\"><a title=\"sprockets-rails\" href=\"https:\/\/github.com\/rails\/sprockets-rails\">Sprockets<\/a><\/li>\n<li dir=\"ltr\"><a title=\"rails-perftest\" href=\"https:\/\/github.com\/rails\/rails-perftest\">Performance tests<\/a><\/li>\n<\/ul>\n<p>\u4e00\u3064\u76ee\u306e Hash-based &amp; Dynamic finder methods \u306f\u975e\u63a8\u5968\u3068\u306a\u3063\u305f\u6a5f\u80fd\uff08\u30cf\u30c3\u30b7\u30e5\u30d9\u30fc\u30b9\u306e\u52d5\u7684\u30d5\u30a1\u30a4\u30f3\u30c0\uff09\u304c Gem \u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u5916\u51fa\u3057\u3055\u308c\u305f\u3082\u306e\u3067\u3059\u3002\u300crails new ...\u300d\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u305f\u76f4\u5f8c\u306e Gemfile \u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u5f8c\u3092\u8003\u3048\u308b\u3068 Gemfile \u304b\u3089\u6d88\u3057\u3066\u304a\u304f\u65b9\u304c\u826f\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>5. Documentation<\/h2>\n<p>\uff08\u7701\u7565\uff09<\/p>\n<p>&nbsp;<\/p>\n<h2>6. Railties<\/h2>\n<p><em><strong>\u4e3b\u306a\u5909\u66f4\u70b9<\/strong><\/em><\/p>\n<ul>\n<li>\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4ee5\u4e0b\u306e\u901a\u308a\u5909\u66f4\u3055\u308c\u305f\u3002<\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<th>\u5909\u66f4\u524d<\/th>\n<th>\u5909\u66f4\u5f8c<\/th>\n<th>\u30c6\u30b9\u30c8\u5b9f\u884c\u65b9\u6cd5<\/th>\n<\/tr>\n<tr>\n<td>test\/units<\/td>\n<td>test\/models<\/td>\n<td>rake test:models<\/td>\n<\/tr>\n<tr>\n<td>test\/units\/helpers<\/td>\n<td>test\/helpers<\/td>\n<td>rake test:helpers<\/td>\n<\/tr>\n<tr>\n<td>test\/functional (controller)<\/td>\n<td>test\/controllers<\/td>\n<td>rake test:controllers<\/td>\n<\/tr>\n<tr>\n<td>test\/functional (mailer)<\/td>\n<td>test\/mailers<\/td>\n<td>rake test:mailers<\/td>\n<\/tr>\n<tr>\n<td><del datetime=\"2013-06-15T13:53:39+00:00\">test\/integration<\/del><\/td>\n<td><del datetime=\"2013-06-15T13:53:39+00:00\">test\/acceptance<\/del><\/td>\n<td><del datetime=\"2013-06-15T13:53:39+00:00\">rake test:acceptance<\/del><del datetime=\"2013-06-15T13:53:39+00:00\"> \uff08\u203b2013\/6\/15\u8ffd\u8a18: test:integration \u306e\u307e\u307e\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002\uff09<\/del><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u304c bin \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u7f6e\u304b\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\uff08\u203b2013\/2\/15\u8ffd\u8a18: \u300cbundle install\u300d\u3059\u308b\u3068\u304d\u306b --binstubs \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u5834\u5408\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u8a73\u3057\u304f\u306f\u300c<a title=\"Hello Rails4 beta\" href=\"http:\/\/www.techscore.com\/blog\/2013\/01\/21\/hello-rails4-beta\/\">Hello Rails4 beta<\/a>\u300d\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\uff09<\/li>\n<li>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u306b\u306a\u3063\u305f\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong><em>\u975e\u63a8\u5968<\/em><\/strong><\/p>\n<ul>\n<li>\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u306b\u306a\u3063\u305f\u305f\u3081\uff09config.threadsafe! \u304c\u975e\u63a8\u5968\u3068\u306a\u3063\u305f\u3002<\/li>\n<li>Rails::Plugin \u306f\u5ec3\u6b62\u3055\u308c\u305f\u3002vendor\/plugins \u3067\u306f\u306a\u304f Gem \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>7. Action Mailer<\/h2>\n<p><em><strong>\u4e3b\u306a\u5909\u66f4\u70b9<\/strong><\/em><\/p>\n<ul>\n<li>\u7279\u306b\u7121\u3057\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong><em>\u975e\u63a8\u5968<\/em><\/strong><\/p>\n<ul>\n<li>\u00a0\u7279\u306b\u7121\u3057\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>8. Active Model<\/h2>\n<p><em><strong>\u4e3b\u306a\u5909\u66f4\u70b9<\/strong><\/em><\/p>\n<ul>\n<li>\u8a31\u53ef\u3057\u306a\u3044\u5c5e\u6027\u306b\u5bfe\u3059\u308b Mass-assignment \u3092\u9632\u3050\u30b7\u30f3\u30d7\u30eb\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3042\u308b ActiveModel::ForbiddenAttributesProtection \u3092\u8ffd\u52a0\u3002<\/li>\n<li>\u666e\u901a\u306e\u30af\u30e9\u30b9\u306b\u30e2\u30c7\u30eb\u306e\u6a5f\u80fd\u3092\u4e0e\u3048\u308b ActiveModel::Model \u3092\u8ffd\u52a0\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong><em>\u975e\u63a8\u5968<\/em><\/strong><\/p>\n<ul>\n<li>\u00a0\u7279\u306b\u7121\u3057\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>9. Active Support<\/h2>\n<p><em><strong>\u4e3b\u306a\u5909\u66f4\u70b9<\/strong><\/em><\/p>\n<ul>\n<li>ActiveSupport::Cache::MemCacheStore \u306b\u304a\u3044\u3066\u3001\u975e\u63a8\u5968\u306e memcache-client \u304b\u3089 dalli \u306b\u5909\u66f4\u3002<\/li>\n<li>ActiveSupport::Cache::Entry \u3092\u6700\u9069\u5316\u3057\u3001\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3068\u51e6\u7406\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u524a\u6e1b\u3002<\/li>\n<li>Inflection (\u5358\u6570\u5f62\/\u8907\u6570\u5f62) \u304c\u30ed\u30b1\u30fc\u30eb\u3054\u3068\u306b\u8a2d\u5b9a\u53ef\u80fd\u3068\u306a\u308a\u3001singularize\/pluralize \u304c\u8ffd\u52a0\u306e\u5f15\u6570\u3068\u3057\u3066\u30ed\u30b1\u30fc\u30eb\u3092\u53d6\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/li>\n<li>Object#try \u306f NoMethodError \u306e\u4ee3\u308f\u308a\u306b nil \u3092\u8fd4\u3059\u3088\u3046\u306b\u5909\u66f4\u3002\u307e\u305f\u3001\u4eca\u307e\u3067\u306e NoMethodError \u3092 raise \u3059\u308b\u52d5\u4f5c\u3092\u3059\u308b Object#try! \u3092\u8ffd\u52a0\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong><em>\u975e\u63a8\u5968<\/em><\/strong><\/p>\n<ul>\n<li>ActiveSupport::TestCase#pending<br \/>\n\u4ee3\u308f\u308a\u306b MiniTest \u306e skip \u3092\u4f7f\u7528\u3059\u308b\u3002<\/li>\n<li>ActiveSupport::Benchmarkable#silence<br \/>\n\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u3067\u306f\u306a\u3044\u305f\u3081\u975e\u63a8\u5968\u3002\u4ee3\u66ff\u306e\u3082\u306e\u3092\u6e96\u5099\u3059\u308b\u4e88\u5b9a\u306f\u306a\u304f\u3001Rails 4.1 \u3067\u524a\u9664\u4e88\u5b9a\u3002<\/li>\n<li>ActiveSupport::JSON::Variable<br \/>\n\u72ec\u81ea\u306b #as_json, #encode_json \u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3002<\/li>\n<li>Module#local_constant_names<br \/>\n\u4ee3\u308f\u308a\u306b Module#local_constants \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\uff08\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u6587\u5b57\u5217\u3067\u306f\u306a\u304f\u30b7\u30f3\u30dc\u30eb\u3092\u8fd4\u3059\uff09\u3002<\/li>\n<li>BufferedLogger<br \/>\nActiveSupport::Logger \u307e\u305f\u306f Ruby \u6a19\u6e96\u6dfb\u4ed8\u30e9\u30a4\u30d6\u30e9\u30ea\u306e logger \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3002<\/li>\n<li>assert_present, assert_blank \uff08\u203b2013\/2\/15\u8ffd\u8a18: \u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\uff09<br \/>\n\u300cassert_present object\u300d\u3001\u300cassert_blank object\u300d\u3067\u306f\u306a\u304f\u300cassert object.present?\u300d\u3001\u300cassert object.blank?\u300d\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>10. Action Pack<\/h2>\n<p><em><strong>\u4e3b\u306a\u5909\u66f4\u70b9<\/strong><\/em><\/p>\n<ul>\n<li>development \u30e2\u30fc\u30c9\u306b\u304a\u3051\u308b\u4f8b\u5916\u30da\u30fc\u30b8\u306e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u5909\u66f4\u3057\u3001\u4f8b\u5916\u30da\u30fc\u30b8\u306b\u300c\u767a\u751f\u3057\u305f\u4f8b\u5916\u306e\u65ad\u7247\u3068\u30b3\u30fc\u30c9\u300d\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong><em>\u975e\u63a8\u5968<\/em><\/strong><\/p>\n<ul>\n<li>\u7279\u306b\u7121\u3057\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>11. Active Record<\/h2>\n<p><em><strong>\u4e3b\u306a\u5909\u66f4\u70b9<\/strong><\/em><\/p>\n<ul>\n<li>\u30b9\u30ad\u30fc\u30de\u5909\u66f4\u3092\u884c\u3046\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u66f8\u304d\u65b9\u304c\u6539\u5584\u3055\u308c\u3001\u53e4\u3044 up\/down \u30e1\u30bd\u30c3\u30c9\u304c\u4e0d\u8981\u3068\u306a\u3063\u305f\u3002\n<ul>\n<li>drop_table \u53ca\u3073 remove_column \u306f\u5fc5\u8981\u306a\u60c5\u5831\u304c\u4e0e\u3048\u3089\u308c\u305f\u5834\u5408\u306b\u304a\u3044\u3066\u30ea\u30d0\u30fc\u30b7\u30d6\u30eb\u3068\u306a\u3063\u305f\u3002\u8907\u6570\u30ab\u30e9\u30e0\u3092\u524a\u9664\u3059\u308b remove_columns \u306f\u30ea\u30d0\u30fc\u30b7\u30d6\u30eb\u3067\u306f\u306a\u3044\u3002change_table \u306b\u3064\u3044\u3066\u306f\u3001\u30d6\u30ed\u30c3\u30af\u5185\u3067<del>\u30ab\u30e9\u30e0\u306e\u524a\u9664<\/del> remove, change, change_default \uff08\u203b2013\/6\/15\u8ffd\u8a18: \u5143\u6587\u66f8\u306e\u4fee\u6b63\u306b\u4f34\u3044\u5909\u66f4\u3057\u307e\u3057\u305f\u3002\uff09\u3092\u884c\u308f\u306a\u3044\u9650\u308a\u30ea\u30d0\u30fc\u30b7\u30d6\u30eb\u3002<\/li>\n<li>up\/down \u3092\u884c\u3046\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u53ef\u80fd\u306a reversible \u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3002<\/li>\n<li>\u4e0e\u3048\u3089\u308c\u305f\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092 down \u3059\u308b revert \u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3002<\/li>\n<\/ul>\n<\/li>\n<li><del>schema_migrations \u306b\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3059\u308b\u30ab\u30e9\u30e0\u3092\u8ffd\u52a0\u3002<\/del>\uff08\u203b2013\/6\/15\u8ffd\u8a18: \u7121\u304f\u306a\u308a\u307e\u3057\u305f\u3002\uff09\n<ul>\n<li><del>migrated_at ... \u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u65e5\u6642\u3002<\/del><\/li>\n<li><del>fingerprint ... \u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e MD5 \u30cf\u30c3\u30b7\u30e5\u5024\u3002<\/del><\/li>\n<li><del>name ... \u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u62e1\u5f35\u5b50\u3092\u9664\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u540d\u3002<\/del><\/li>\n<\/ul>\n<\/li>\n<li>PostgreSQL \u306e\u914d\u5217\u578b\u3092\u30b5\u30dd\u30fc\u30c8\u3002\u4efb\u610f\u306e\u30c7\u30fc\u30bf\u578b\u3067\u914d\u5217\u578b\u3092\u4f5c\u6210\u53ef\u80fd\u3002<\/li>\n<li>\u660e\u793a\u7684\u306b\u30ec\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u8fbc\u307f self \u3092\u8fd4\u3059 Relation#load \u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3002<\/li>\n<li>Model.all \u306f\u914d\u5217\u3067\u306f\u306a\u304f \u00a0ActiveRecord::Relation \u3092\u8fd4\u3059\u3088\u3046\u306b\u5909\u66f4\u3002\u914d\u5217\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f Relation#to_a \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3002\u3053\u306e\u5909\u66f4\u306f\u3001Rails 4.0 \u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u6642\u306b\u554f\u984c\u3092\u751f\u3080\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<\/li>\n<li>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u4fdd\u7559\u3055\u308c\u3066\u3044\u308b\u3068\u304d\u306b\u4f8b\u5916\u3092\u767a\u751f\u3059\u308b ActiveRecord::Migration.check_pending! \u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3002<\/li>\n<li>\u30ab\u30b9\u30bf\u30e0\u30b3\u30fc\u30c0\u30fc\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b ActiveRecord::Store \u3092\u8ffd\u52a0\u3002\u6b21\u306e\u3088\u3046\u306b\u30ab\u30b9\u30bf\u30e0\u30b3\u30fc\u30c0\u30fc\u3092\u8a2d\u5b9a\u53ef\u80fd\uff1a\n<ul>\n<li>store :settings, accessors: [:color, :homepage], coder: JSON<\/li>\n<\/ul>\n<\/li>\n<li>mysql, mysql2 \u306e\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 SQL_MODE=STRICT_ALL_TABLES \u304c\u8a2d\u5b9a\u3055\u308c\u308b\u3088\u3046\u306b\u5909\u66f4\u3002\u3053\u308c\u3092\u30aa\u30d5\u306b\u3059\u308b\u306b\u306f database.yml \u3067 strict: false \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3002<\/li>\n<li>IdentityMap \u3092\u524a\u9664\u3002<\/li>\n<li>ActiveRecord::Relation \u306e Null \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d1\u30bf\u30fc\u30f3\u3092\u5b9f\u88c5\u3059\u308b ActiveRecord::NullRelation, ActiveRecord::Relation#none \u3092\u8ffd\u52a0\u3002<\/li>\n<li>HABTM (Has And Belongs To Many) \u306e\u4e2d\u9593\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9 create_join_table \u3092\u8ffd\u52a0\u3002<\/li>\n<li>PostgreSQL \u306e hstore \u578b\u306e\u30ec\u30b3\u30fc\u30c9\u304c\u4f5c\u6210\u53ef\u80fd\u3068\u306a\u3063\u305f\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong><em>\u975e\u63a8\u5968<\/em><\/strong><\/p>\n<ul>\n<li>\u53e4\u3044\u5f62\u5f0f\u3067\u3042\u308b\u30cf\u30c3\u30b7\u30e5\u30d9\u30fc\u30b9\u306e Finder API \u304c\u975e\u63a8\u5968\u3068\u306a\u3063\u305f\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u306a\u304a\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<th>\u975e\u63a8\u5968\u30b3\u30fc\u30c9<\/th>\n<th>\u4ee3\u66ff\u30b3\u30fc\u30c9<\/th>\n<\/tr>\n<tr>\n<td>find_all_by_...<\/td>\n<td>where(...)<\/td>\n<\/tr>\n<tr>\n<td>find_last_by_...<\/td>\n<td>where(...).last<\/td>\n<\/tr>\n<tr>\n<td>scoped_by_...<\/td>\n<td>where(...)<\/td>\n<\/tr>\n<tr>\n<td>find_or_initialize_by_...<\/td>\n<td>where(...).find_or_initialize<\/td>\n<\/tr>\n<tr>\n<td>find_or_create_by_...<\/td>\n<td>find_or_create_by(...) \u307e\u305f\u306f where(...).first_or_create<\/td>\n<\/tr>\n<tr>\n<td>find_or_create_by_...!<\/td>\n<td>find_or_create_by!(...) \u307e\u305f\u306f where(...).first_or_create!<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p><a title=\"Ruby on Rails 4.0 Release Notes\" href=\"http:\/\/edgeguides.rubyonrails.org\/4_0_release_notes.html\">Ruby on Rails 4.0 Release Notes<\/a>\u00a0\u3092\u8aad\u3093\u3067\u3001\u5168\u4f53\u7684\u306a\u611f\u3058\u306f\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d30\u304b\u3044\u5909\u66f4\u70b9\u306f\u500b\u5225\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306a\u3069\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3089\u306e\u78ba\u8a8d\u3082\u5fc5\u8981\u3067\u3059\u306d\u3002<\/p>\n<p>\u307e\u305f\u3001\u975e\u63a8\u5968\u3068\u306a\u308b\u6a5f\u80fd\u3082\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u306d\uff08\u304d\u3063\u3068 4.1 \u3067\u524a\u9664\u3055\u308c\u308b\u306e\u3067\uff09\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4eca\u56de\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u8aad\u3093\u3067\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u305f\u304f\u306a\u3063\u305f\uff01\u3068\u3044\u3046\u65b9\u306f\u3001\u300c<a title=\"Hello Rails4 beta\" href=\"http:\/\/www.techscore.com\/blog\/2013\/01\/21\/hello-rails4-beta\/\">Hello Rails4 beta<\/a>\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Rails 4.0.0.beta \u3092\u52d5\u304b\u3059\u65b9\u6cd5\u3092\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Enjoy Rails!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Ruby on Rails 4.0 Release Notes \u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b63\u5f0f\u30ea\u30ea\u30fc\u30b9\u307e\u3067\u306b\u5909\u66f4\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u5927\u304d\u304f\u5909\u308f\u308b\u3053\u3068\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2013\/01\/24\/ruby-on-rails-4-0-release-notes-%e3%82%92%e8%aa%ad%e3%82%80\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[22,24],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/1839"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=1839"}],"version-history":[{"count":1,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/1839\/revisions"}],"predecessor-version":[{"id":17970,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/1839\/revisions\/17970"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=1839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=1839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=1839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}