Skip to content

Commit 0faae8a

Browse files
committed
Emphasize mention of Migration.verbose [ci skip]
The API documentation for `ActiveRecord::Migration` mentions controlling the level of log output through a `.verbose` class attribute. The line isn't wrapped in `<tt>`, `+`, or backticks, so isn't emphasized as if it were code. This commit visually emphasizes that line so that it's more obviously code.
1 parent f735328 commit 0faae8a

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

activerecord/lib/active_record/migration.rb

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def initialize
485485
# them to the console as they happen, along with benchmarks describing how
486486
# long each step took.
487487
#
488-
# You can quiet them down by setting ActiveRecord::Migration.verbose = false.
488+
# You can quiet them down by setting <tt>ActiveRecord::Migration.verbose = false</tt>.
489489
#
490490
# You can also insert your own messages and benchmarks by using the +say_with_time+
491491
# method:
@@ -791,6 +791,25 @@ def disable_ddl_transaction # :nodoc:
791791
self.class.disable_ddl_transaction
792792
end
793793

794+
##
795+
# :singleton-method: verbose
796+
#
797+
# By default, migrations will describe the actions they are taking, writing
798+
# them to the console as they happen, along with benchmarks describing how
799+
# long each step took.
800+
#
801+
# You read that setting through <tt>ActiveRecord::Migration.verbose</tt>.
802+
803+
##
804+
# :singleton-method: verbose=
805+
#
806+
# :call-seq: verbose=(value)
807+
#
808+
# By default, migrations will describe the actions they are taking, writing
809+
# them to the console as they happen, along with benchmarks describing how
810+
# long each step took.
811+
#
812+
# You can quiet them down by setting <tt>ActiveRecord::Migration.verbose = false</tt>.
794813
cattr_accessor :verbose
795814
attr_accessor :name, :version
796815

0 commit comments

Comments
 (0)