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 Use new hash syntax for generators gem method 2012-05-22 13:26:06 +04:00
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 Remove unnecessary comment. 2012-05-23 11:45:08 +03:00
controller_generator_test.rb Move Coffee generators and templates to Coffee Railtie and create javascript_engine ("js") for apps that remove Coffee gem 2011-06-29 21:16:09 -03:00
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 added tests, replaced classify with constantize - using classify here cuts the last 's' in ORM name 2011-11-26 19:57:51 +01:00
performance_test_generator_test.rb Remove the laziness from the middleware stack. 2010-06-03 23:32:10 +10:00
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 fix scaffold_generator_test.rb and model_generator_test.rb 2012-04-16 12:10:39 +05:30
session_migration_generator_test.rb
shared_generator_tests.rb Fix build for railties generators 2012-05-02 17:31:29 +05:30
task_generator_test.rb