instance method
seeds?
Ruby on Rails 8.1.2
Since v8.0.4Available in: v8.0.4 v8.1.2
Signature
seeds?()
Determines whether the db:prepare task should seed the database from db/seeds.rb.
If the seeds key is present in the config, seeds? will return its value. Otherwise, it will return true for the primary database and false for all other configs.
Source
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 160
def seeds?
configuration_hash.fetch(:seeds, primary?)
end
Defined in activerecord/lib/active_record/database_configurations/hash_config.rb line 160
· View on GitHub
· Improve this page
· Find usages on GitHub