- 18 7月, 2012 1 次提交
-
-
由 Aleksey Magusev 提交于
For instance, running rails g migration CreateMediaJoinTable artists musics:uniq will create a migration with create_join_table :artists, :musics do |t| # t.index [:artist_id, :music_id] t.index [:music_id, :artist_id], unique: true end
-
- 10 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
minitest/spec provides `describe`, so deprecate the rails version and have people use the superclass version
-
- 09 7月, 2012 14 次提交
-
-
由 Carlos Antonio da Silva 提交于
The extension was removed in 22bc12ec, making "test" an alias for minitest's "it".
-
由 Aaron Patterson 提交于
-
由 Xavier Noria 提交于
[Guide] Fix broken links
-
由 Rafael Mendonça França 提交于
Add references statements to migration generator
-
由 Philipp Franke 提交于
-
由 Aleksey Magusev 提交于
Add a paragraph about references statements in migration generator and the subchapter "Supported type modifiers"
-
由 Aleksey Magusev 提交于
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
-
由 Aaron Patterson 提交于
Remove rails implementation of describe, alias "test" to "it"
-
由 Aaron Patterson 提交于
-
由 Carlos Antonio da Silva 提交于
Fix Bleak House link in debugging guide. Closes #7002
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Follow the consistency defined in dbc43bcc.
-
由 Carlos Antonio da Silva 提交于
Changes introduced in 7404cda9. Fix railties build.
-
由 Philipp Franke 提交于
-
- 08 7月, 2012 6 次提交
-
-
由 Carlos Antonio da Silva 提交于
Add few information on Fedora and CentOS [ci skip]
-
由 José Valim 提交于
Show Routes while Debugging RoutingError
-
由 Robin Dupret 提交于
-
由 schneems 提交于
-
由 @schneems and @mattt 提交于
this is so we can show route output in the development when we get a routing error. Railties can use features of ActionDispatch, but ActionDispatch should not depend on Railties.
-
由 schneems 提交于
If someone receives a routing error, they likely need to view the routes. Rather than making them visit '/rails/info/routes' or run `rake routes` we can give them that information on the page.
-
- 07 7月, 2012 18 次提交
-
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
-
由 Carlos Antonio da Silva 提交于
Introduced in 75b340d1
-
由 Jon Leighton 提交于
A test was failing due to the way that Relation#inspect causes association proxies to ignore unsaved records added to the association. This is fixed by simply calling to_a and letting to_a figure out how to get the records (which, in the case of associations, takes into account new records). I think it is acceptable to do this rather than limiting the query at the database level: * It's what we've done in all released Rails versions up to this point * The goal of the limit is to not flood the console with output - this is the problem we're targeting, rather than the actual loading of the records from the database * You probably want to do something with those records later anyway, otherwise you wouldn't have built a relation for them.
-
由 Carlos Antonio da Silva 提交于
Small refactoring of as_json method
-
由 Carlos Antonio da Silva 提交于
Allow to register database tasks from different adapters
-
由 Carlos Antonio da Silva 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 José Valim 提交于
Allow people to register their own flash types.
-
由 kennyj 提交于
-
由 José Valim 提交于
Engine table name prefix generator fix
-
由 José Valim 提交于
Remove unused code.
-
由 José Valim 提交于
Added *instance_writer: false* to stored/serialized attributes.
-
由 José Valim 提交于
-
由 José Valim 提交于
Limit the number of records in Relation#inspect
-