Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | added column type to example in section 2.3 | Ofer Nave | 2013-09-24 | 1 | -1/+1 |
| | |||||
* | [ci skip] Add a type modifier in migrations.md. | Juanito Fatas | 2013-09-22 | 1 | -0/+1 |
| | |||||
* | [ci skip] Improve readability of 4.3's NOTE in migration.md. | Juanito Fatas | 2013-09-17 | 1 | -3/+3 |
| | |||||
* | Added quotes when defining the precision for the `decimal` fields | mogetutu | 2013-09-12 | 1 | -1/+1 |
| | | | | | | | | | | | | | before: ```bash $ rails generate migration AddDetailsToProducts price:decimal{5,2} supplier:references{polymorphic} ``` after: ```bash $ rails generate migration AddDetailsToProducts 'price:decimal{5,2}' supplier:references{polymorphic} ``` | ||||
* | Fix typos [ci skip] | Carlos Antonio da Silva | 2013-08-30 | 1 | -2/+2 |
| | |||||
* | Add documentation for rake db:setup task | Jay Hayes | 2013-08-29 | 1 | -0/+5 |
| | |||||
* | Note functional equivalence in reset task | Jay Hayes | 2013-08-29 | 1 | -2/+2 |
| | |||||
* | migrations guide: fix and edits [ci skip] | Xavier Noria | 2013-08-05 | 1 | -7/+9 |
| | |||||
* | Fix a grammatical error/typo in Active Record Migrations guide. [ci skip] | Daniel Dawson | 2013-07-08 | 1 | -1/+1 |
| | |||||
* | Update 'Active Record Migrations' guide [ci skip] | Shinichi Maeshima | 2013-07-08 | 1 | -1/+0 |
| | | | | Delete an unneeded line. | ||||
* | Typo in Active Record Migrations Guide [ci skip] | dkaplan88 | 2013-06-29 | 1 | -1/+1 |
| | |||||
* | Fix documents for create_join_table | Satoshi Ebisawa | 2013-06-21 | 1 | -2/+2 |
| | |||||
* | copy edits [ci skip] | Vijay Dev | 2013-06-14 | 1 | -11/+9 |
| | |||||
* | Remove double spaces in guides | Sunny Ripert | 2013-05-28 | 1 | -1/+1 |
| | |||||
* | Remove double spaces in code examples | Sunny Ripert | 2013-05-28 | 1 | -1/+1 |
| | |||||
* | Correct the assertion that join table columns have no options, mind context. | Luka Marčetić | 2013-05-27 | 1 | -2/+2 |
| | |||||
* | Use new hash syntax | Mikhail Dieterle | 2013-05-14 | 1 | -2/+2 |
| | |||||
* | fix grammar | Adam Konner | 2013-05-13 | 1 | -2/+2 |
| | |||||
* | Fixed boolean validation example to use inclusion instead of presence on ↵ | Dana Jones | 2013-05-10 | 1 | -2/+3 |
| | | | | migrations guide | ||||
* | Document the fact you can add_index on new columns | Sammy Larbi | 2013-04-17 | 1 | -1/+19 |
| | |||||
* | s/app\/model\//app\/models\//g | Akira Matsuda | 2013-03-24 | 1 | -2/+2 |
| | |||||
* | transactions can be turned off per Migration. | Yves Senn | 2013-03-05 | 1 | -1/+5 |
| | | | | | | | | | | | Closes #9483. There are SQL Queries that can't run inside a transaction. Since the Migrator used to wrap all Migrations inside a transaction there was no way to run these queries within a migration. This patch adds `self.disable_ddl_transaction!` to the migration to turn transactions off when necessary. | ||||
* | Support creating a table migration generator | Sammy Larbi | 2013-03-01 | 1 | -0/+21 |
| | | | | | | | | | | | | | | | | Sometimes you want to create a table without an associated model and test, which is also not a join table. With this commit, you can now do that. Example: rails g migration create_posts title:string or rails g migration CreatePosts title:string This commit also moves the template the model generator uses for the migration to the migration templates folder, as it seems a more sensible place for it now that it is shared code. | ||||
* | Add more documentation for create_join_table. | Marc Schütz | 2013-02-20 | 1 | -0/+10 |
| | | | | | Explain that it doesn't create indices by default and that it also has a block form. | ||||
* | fixes a typo in the migrations guide | Xavier Noria | 2013-02-19 | 1 | -1/+1 |
| | |||||
* | Replacing plugin to gem | Lucas Caton | 2013-01-19 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-01-01 | 1 | -0/+19 |
|\ | |||||
| * | Document JoinTable migration generator | Sammy Larbi | 2012-12-29 | 1 | -0/+19 |
| | | |||||
* | | Fix up/down column change example code formatting | Sammy Larbi | 2012-12-29 | 1 | -1/+1 |
|/ | |||||
* | Note about migration timestamps. | Steve Klabnik | 2012-12-26 | 1 | -1/+3 |
| | | | | | | | | We should mention that the ordering matters with regards to timestamps, and not imply that it's just for uniqueness purposes. Closes #8610. | ||||
* | Update Migration and 4.0 Release Guides, Changelogs [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -36/+189 |
| | |||||
* | Punctuation, capitalization, grammar fixes in rails guides | Katie Oldaker | 2012-12-07 | 1 | -3/+3 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-12-04 | 1 | -1/+1 |
|\ | | | | | | | | | Conflicts: guides/source/migrations.md | ||||
| * | fix some formatting | 1334 | 2012-12-03 | 1 | -2/+2 |
| | | |||||
* | | Migration Guide: General fix-up | Steve Klabnik | 2012-12-01 | 1 | -365/+217 |
|/ | | | | | | | | | This introduces a bunch of editing/re-writing to the migrations guide. There were a bunch of small changes, and a few larger ones: * mysql does support transactions. * Add a section about db/seeds.rb * Largely re-wrote the first few sections | ||||
* | Normalize on 'After reading this guide, you will know:' | Steve Klabnik | 2012-11-29 | 1 | -1/+1 |
| | | | | | We have three or four different introduction sentences to the guides. After this commit, we use the same one everywhere. | ||||
* | Migrations: add 'Active Record' to title | Steve Klabnik | 2012-11-29 | 1 | -2/+2 |
| | | | | | Other guides that talk about Active Record specific features include the name of the library in the title, this one should too for consistency. | ||||
* | Add periods to the bullet points in guides. | Steve Klabnik | 2012-11-29 | 1 | -4/+4 |
| | | | | Talked with @fxn about this. Bullet points should have periods at the ends. | ||||
* | Migrations: Fix opening bullets. | Steve Klabnik | 2012-11-29 | 1 | -2/+2 |
| | | | | The wording of these was a bit off, so I fixed them. | ||||
* | Migrations: move massive paragraph out of intro. | Steve Klabnik | 2012-11-29 | 1 | -10/+19 |
| | | | | | | | Most of the guides have a few simple sentences describing what they will show you at the top. This one had a few big paragraphs. I've moved those paragraphs down to an introductory one, and written a new smaller one for the introduction. This makes this guide more consistent with the others. | ||||
* | Switch to 1.9 hash syntax | Agis Anastasopoulos | 2012-11-16 | 1 | -22/+22 |
| | |||||
* | Changed comment section to be more explicit. I had an issue with rolling ↵ | John Gallagher | 2012-10-27 | 1 | -2/+3 |
| | | | | back a migration and couldn't understand why 'rake db:reset' didn't work. | ||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-10-21 | 1 | -7/+8 |
|\ | | | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/slice.rb guides/source/active_support_core_extensions.md | ||||
| * | Revert "divided into folder with the language" | Rafael Mendonça França | 2012-10-17 | 1 | -0/+992 |
| | | | | | | | | | | | | This reverts commit f5b9ed4fbc3215a5fce48985ea372ad3f1182252. REASON: Translation work can not be done in the docrails repository | ||||
| * | divided into folder with the language | Rodrigo Martins | 2012-10-17 | 1 | -992/+0 |
| | | |||||
| * | Fix formatting on migrations guide | Jaime Iniesta | 2012-10-14 | 1 | -7/+8 |
| | | |||||
* | | Expand caveat about models in migrations (rails guide) | Katrina Owen | 2012-10-10 | 1 | -0/+21 |
|/ | | | | | | | | | | | | | This is an attempt to address issue #6939, where an earlier migration added a column to the database, and a later migration uses a model and references that column. When both migrations were run together with `rake db:migrate` the column information in memory still referenced the old table structure. Running the migrations separately fixed this, as a new connection was then established before referencing the model. Explicitly calling `reset_column_information` is a more reliable workaround. | ||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-10-11 | 1 | -2/+12 |
|\ | | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb | ||||
| * | add command line $ tip for new programmers | schneems | 2012-10-02 | 1 | -0/+2 |
| | | |||||
| * | improve wording over `change` method docs | schneems | 2012-10-02 | 1 | -1/+1 |
| | | | | | | | | The feature is available after Rails 3.1 and this is no longer a "new" feature. |