1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/generators
Aleksey Magusev 0cae7c60ac Add references statements to migration generator
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
2012-07-08 23:03:05 +04:00
..
actions_test.rb
app_generator_test.rb Fix app_generator_test with the changes introduced at 2012-05-30 22:46:53 -03:00
assets_generator_test.rb
controller_generator_test.rb
generated_attribute_test.rb Add polymorphic option to model generator 2012-06-27 18:12:28 +04:00
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 Add references statements to migration generator 2012-07-08 23:03:05 +04:00
model_generator_test.rb Add polymorphic option to model generator 2012-06-27 18:12:28 +04:00
named_base_test.rb
namespaced_generators_test.rb Fixed generating namespaced table_name_prefix in engines 2012-07-06 21:22:53 +02:00
observer_generator_test.rb
orm_test.rb
performance_test_generator_test.rb
plugin_new_generator_test.rb remove test/dummy from gitignore when "plugin new -T" 2012-07-03 11:58:17 -05:00
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