Skip to content

Commit 3bfd559

Browse files
committed
Make some database tasks methods private
These were never supposed to be public and they aren't very useful outside of database tasks so make them private.
1 parent 6f50d40 commit 3bfd559

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activerecord/lib/active_record/tasks/database_tasks.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ def create_all
129129
migration_class.establish_connection(db_config)
130130
end
131131

132-
def setup_initial_database_yaml
132+
def setup_initial_database_yaml # :nodoc:
133133
return {} unless defined?(Rails)
134134

135135
Rails.application.config.load_database_yaml
136136
end
137137

138-
def for_each(databases)
138+
def for_each(databases) # :nodoc:
139139
return {} unless defined?(Rails)
140140

141141
database_configs = ActiveRecord::DatabaseConfigurations.new(databases).configs_for(env_name: Rails.env)
@@ -150,7 +150,7 @@ def for_each(databases)
150150
end
151151
end
152152

153-
def raise_for_multi_db(environment = env, command:)
153+
def raise_for_multi_db(environment = env, command:) # :nodoc:
154154
db_configs = configs_for(env_name: environment)
155155

156156
if db_configs.count > 1

0 commit comments

Comments
 (0)