1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides/source
Katrina Owen a1d2f69377 Expand caveat about models in migrations (rails guide)
This is an attempt to address issue #6939, where an earlier migration
added a column to the database, and a later migration uses a model and
references that column.

When both migrations were run together with `rake db:migrate` the column
information in memory still referenced the old table structure.

Running the migrations separately fixed this, as a new connection was
then established before referencing the model. Explicitly calling
`reset_column_information` is a more reliable workaround.
2012-10-10 23:44:43 +02:00
..
kindle
2_2_release_notes.md
2_3_release_notes.md
3_0_release_notes.md
3_1_release_notes.md
3_2_release_notes.md
4_0_release_notes.md
_license.html.erb
_welcome.html.erb
action_controller_overview.md
action_mailer_basics.md
action_view_overview.md
active_model_basics.md
active_record_basics.md
active_record_querying.md
active_record_validations_callbacks.md
active_support_core_extensions.md
active_support_instrumentation.md
ajax_on_rails.md
api_documentation_guidelines.md
asset_pipeline.md
association_basics.md
caching_with_rails.md
command_line.md
configuring.md
contributing_to_ruby_on_rails.md
credits.html.erb
debugging_rails_applications.md
development_dependencies_install.md
documents.yaml
engines.md
form_helpers.md
generators.md
getting_started.md
i18n.md
index.html.erb
initialization.md
layout.html.erb
layouts_and_rendering.md
migrations.md Expand caveat about models in migrations (rails guide) 2012-10-10 23:44:43 +02:00
nested_model_forms.md
performance_testing.md
plugins.md
rails_application_templates.md
rails_on_rack.md
routing.md
ruby_on_rails_guides_guidelines.md
security.md
testing.md
upgrading_ruby_on_rails.md