instance method
db_when_updating
Ruby on Rails 7.0.10
Since v7.0.10 Last seen in v7.0.10Signature
db_when_updating()
No documentation comment.
Source
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 196
def db_when_updating
path = File.expand_path("db/schema.rb", destination_root)
if File.exist?(path)
gsub_file("db/schema.rb", /ActiveRecord::Schema\.define/, "ActiveRecord::Schema[6.1].define")
end
end
Defined in railties/lib/rails/generators/rails/app/app_generator.rb line 196
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::AppBuilder