What do the &,<<, * mean in this database.yml file?

后端 未结 5 2049
太阳男子
太阳男子 2020-12-22 15:40

Up until now I have only used database.yml with each parameter called out explicitly, in the file below it uses some characters I do not understand. What does each line and

5条回答
  •  误落风尘
    2020-12-22 16:19

    &default means you're labeling this set of attributes with some name for later use

    <<: *default means you're including all attributes from group labeled as default

提交回复
热议问题