Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | link to "Schema migration" Wikipedia page. Closes #14479. [ci skip] | Yves Senn | 2014-03-26 | 1 | -3/+4 |
| | |||||
* | [ci skip] remove guide section on models in migrations | Luke Steensen | 2014-02-26 | 1 | -153/+0 |
| | | | | | | Both examples given are incorrect, and no one can seem to come up with a realistic situation where this is an actual problem. For now, it seems like the best thing to do is just scrap the section altogether. | ||||
* | [ci skip] Add missing 'task' to note on Running Migrations | Logan Hasson | 2014-02-04 | 1 | -1/+1 |
| | |||||
* | [ci skip] Describe precision + scale in migrations | Taryn East | 2013-12-20 | 1 | -4/+4 |
| | | | | | | | Telling somebody that "precision sets the precision" is not very helpful. Newbies want to know what precision is *for*, likewise with scale. So I've added a very brief description for each. | ||||
* | Revert "`remove_column` does not take a type argument. [ci skip]. Closes #12864" | Yves Senn | 2013-11-13 | 1 | -1/+1 |
| | | | | | | | As of Rails 4.0 `remove_column` is no longer an alias for `remove_columns`. The type is actually valid and used when issuing a rollback (new `change` method). This reverts commit 9c9d4948e428a226a19aa92c17fa6ac5833c2fb8. | ||||
* | `remove_column` does not take a type argument. [ci skip]. Closes #12864 | Yves Senn | 2013-11-12 | 1 | -1/+1 |
| | |||||
* | Fixed typo in migrations guide | Jimmy Petersen | 2013-11-11 | 1 | -1/+1 |
| | | | | | Product model name was pluralized in example in migrations guide. [ci skip] | ||||
* | Merge pull request #12387 from francisgo/patch-9 | Rafael Mendonça França | 2013-09-28 | 1 | -14/+14 |
|\ | | | | | Migrations Guide: Add semicolon to sentences before code block [ci skip] | ||||
| * | Migrations Guide: Add semicolon to sentences before code block [ci skip] | Francis Go | 2013-09-28 | 1 | -14/+14 |
| | | |||||
* | | Migrations Guide: Fix line length [ci skip] | Francis Go | 2013-09-28 | 1 | -2/+2 |
|/ | |||||
* | 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. |