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 Allow to generate namespaced generators [#6140 state:resolved] 2010-12-16 01:49:28 +05:30
generators_test_helper.rb Using load_generators 2011-05-25 13:13:24 +05:30
helper_generator_test.rb be sure to parenthesize the arguments when the first one is a RegExp literal 2011-05-18 23:20:19 +09:00
integration_test_generator_test.rb Remove the laziness from the middleware stack. 2010-06-03 23:32:10 +10:00
mailer_generator_test.rb Get rid of more 1.8.x dead code 2011-12-20 17:59:26 +01:00
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 Add convenience method to hide a generator from the available ones 2012-02-03 10:18:58 -02:00
namespaced_generators_test.rb Fixed generating namespaced table_name_prefix in engines 2012-07-06 21:22:53 +02:00
observer_generator_test.rb be sure to parenthesize the arguments when the first one is a RegExp literal 2011-05-18 23:20:19 +09:00
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 Remove --http. 2012-03-14 22:30:01 +01:00
scaffold_controller_generator_test.rb Remove --http. 2012-03-14 22:30:01 +01:00
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 Revert table_name= needs connection now, so just stub table_name 2012-03-07 02:37:40 +09:00
shared_generator_tests.rb Fix build for railties generators 2012-05-02 17:31:29 +05:30
task_generator_test.rb Rake tasks generator with test 2011-12-17 16:42:35 +04:00