2020/07/30åã®ã³ãããã§ãã
CHANGELOGã«ã®ã£ãã³ãããã¯ä»¥ä¸ã®éãã§ãã
Generate abstract class when generating scaffold in another database
Active Recordãrailtiesã®ä¿®æ£ã§ãã
multiple databasesã使ç¨ããmodelãä½æããå ´åã«ãèªåã§abstract classãçæããããä¿®æ£ãã¦ãã¾ãã
$ rails generate scaffold Pet name:string --database=animals
ãå®è¡ããå ´åãä¸è¨ã®ãããªabstract classãçæãããããã«ãªã£ã¦ãã¾ãã
class AnimalsRecord < ApplicationRecord self.abstract_class = true connects_to database: { writing: :animals } end
modelã§ä½¿ç¨ããabstract classã¯generatorã®--parent
å¼æ°ã§æå®åºæ¥ãããã«ãªã£ã¦ãã¾ãã
Merge pull request #39771 from eugeneius/autosave_exactly_once
activerecord/lib/active_record/autosave_association.rb
ã®ä¿®æ£ã§ãã
after_create
ã§ã¬ã³ã¼ããä¿åããéã«ãthrough associationsã®ã¬ã³ã¼ãã2åä¿åããã¦ãã¾ããã¨ãããã°ããã£ãã®ãä¿®æ£ãã¦ãã¾ãã
Clear Resolvers' cache after AVLogSubscriberTest tests
actionview/test/template/log_subscriber_test.rb
ã®ä¿®æ£ã§ãã
Resolverã®cacheããã¹ãã®å¾å¦çã§åé¤ããããã«ãã¦ãã¾ããcacheãæ®ã£ãã¾ã¾ã«ãªã£ã¦ããã¨ãããåå¨ããªãã³ã³ãã¤ã«æ¸ã¿ã®templateã使ç¨ãããã¨ãã¦ã¨ã©ã¼ã«ãªã£ã¦ãã¾ãçºã
Reduce allocations in transition_table (#39943)
actionpack/lib/action_dispatch/journey/gtg/builder.rb
ã®ä¿®æ£ã§ãã
GTG builderã®transition tableã®æ§ç¯å¦çã§ãªãã¸ã§ã¯ãã®çææ°ãæ¸ãããããªãã¡ã¯ã¿ãªã³ã°ãã¦ãã¾ãã
Fixed typo AnimalsRecrd -> AnimalsRecord [ci skip]
railties/CHANGELOG.md
ã®ä¿®æ£ã§ãã
ã¨ã³ããªã¼å ã®ã¿ã¤ããä¿®æ£ãã¦ãã¾ãã
Fix wrong attributes being set in transactions savepoint test.
activerecord/test/cases/transactions_test.rb
ã®ä¿®æ£ã§ãã
transactions savepoint testã§èª¤ã£ãattributeã«å¤ãè¨å®ãã¦ããã®ãä¿®æ£ãã¦ãã¾ãã
Add docs for abstract class generators
rails guideã®Multiple Databases with Active Record
ã®ä¿®æ£ã§ãã
Generate abstract class when generating scaffold in another databaseã§è¡ã£ãgeneratorã®å¤æ´ã«ã¤ãã¦ã®docã追å ãã¦ãã¾ãã