mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
0cae7c60ac
AddXXXToYYY/RemoveXXXFromYYY migrations are produced with references statements, for instance rails g migration AddReferencesToProducts user:references supplier:references{polymorphic} will generate the migration with: add_reference :products, :user, index: true add_reference :products, :supplier, polymorphic: true, index: true |
||
---|---|---|
.. | ||
actions_test.rb | ||
app_generator_test.rb | ||
assets_generator_test.rb | ||
controller_generator_test.rb | ||
generated_attribute_test.rb | ||
generator_generator_test.rb | ||
generators_test_helper.rb | ||
helper_generator_test.rb | ||
integration_test_generator_test.rb | ||
mailer_generator_test.rb | ||
migration_generator_test.rb | ||
model_generator_test.rb | ||
named_base_test.rb | ||
namespaced_generators_test.rb | ||
observer_generator_test.rb | ||
orm_test.rb | ||
performance_test_generator_test.rb | ||
plugin_new_generator_test.rb | ||
resource_generator_test.rb | ||
scaffold_controller_generator_test.rb | ||
scaffold_generator_test.rb | ||
session_migration_generator_test.rb | ||
shared_generator_tests.rb | ||
task_generator_test.rb |