aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/migrations.md
Commit message (Collapse)AuthorAgeFilesLines
* [ci skip] Describe precision + scale in migrationsTaryn East2013-12-201-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 Senn2013-11-131-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 #12864Yves Senn2013-11-121-1/+1
|
* Fixed typo in migrations guideJimmy Petersen2013-11-111-1/+1
| | | | | Product model name was pluralized in example in migrations guide. [ci skip]
* Merge pull request #12387 from francisgo/patch-9Rafael Mendonça França2013-09-281-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 Go2013-09-281-14/+14
| |
* | Migrations Guide: Fix line length [ci skip]Francis Go2013-09-281-2/+2
|/
* added column type to example in section 2.3Ofer Nave2013-09-241-1/+1
|
* [ci skip] Add a type modifier in migrations.md.Juanito Fatas2013-09-221-0/+1
|
* [ci skip] Improve readability of 4.3's NOTE in migration.md.Juanito Fatas2013-09-171-3/+3
|
* Added quotes when defining the precision for the `decimal` fieldsmogetutu2013-09-121-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 Silva2013-08-301-2/+2
|
* Add documentation for rake db:setup taskJay Hayes2013-08-291-0/+5
|
* Note functional equivalence in reset taskJay Hayes2013-08-291-2/+2
|
* migrations guide: fix and edits [ci skip]Xavier Noria2013-08-051-7/+9
|
* Fix a grammatical error/typo in Active Record Migrations guide. [ci skip]Daniel Dawson2013-07-081-1/+1
|
* Update 'Active Record Migrations' guide [ci skip]Shinichi Maeshima2013-07-081-1/+0
| | | | Delete an unneeded line.
* Typo in Active Record Migrations Guide [ci skip]dkaplan882013-06-291-1/+1
|
* Fix documents for create_join_tableSatoshi Ebisawa2013-06-211-2/+2
|
* copy edits [ci skip]Vijay Dev2013-06-141-11/+9
|
* Remove double spaces in guidesSunny Ripert2013-05-281-1/+1
|
* Remove double spaces in code examplesSunny Ripert2013-05-281-1/+1
|
* Correct the assertion that join table columns have no options, mind context.Luka Marčetić2013-05-271-2/+2
|
* Use new hash syntaxMikhail Dieterle2013-05-141-2/+2
|
* fix grammarAdam Konner2013-05-131-2/+2
|
* Fixed boolean validation example to use inclusion instead of presence on ↵Dana Jones2013-05-101-2/+3
| | | | migrations guide
* Document the fact you can add_index on new columnsSammy Larbi2013-04-171-1/+19
|
* s/app\/model\//app\/models\//gAkira Matsuda2013-03-241-2/+2
|
* transactions can be turned off per Migration.Yves Senn2013-03-051-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 generatorSammy Larbi2013-03-011-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ütz2013-02-201-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 guideXavier Noria2013-02-191-1/+1
|
* Replacing plugin to gemLucas Caton2013-01-191-2/+2
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-01-011-0/+19
|\
| * Document JoinTable migration generatorSammy Larbi2012-12-291-0/+19
| |
* | Fix up/down column change example code formattingSammy Larbi2012-12-291-1/+1
|/
* Note about migration timestamps.Steve Klabnik2012-12-261-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 Lafortune2012-12-211-36/+189
|
* Punctuation, capitalization, grammar fixes in rails guidesKatie Oldaker2012-12-071-3/+3
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-12-041-1/+1
|\ | | | | | | | | Conflicts: guides/source/migrations.md
| * fix some formatting13342012-12-031-2/+2
| |
* | Migration Guide: General fix-upSteve Klabnik2012-12-011-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 Klabnik2012-11-291-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 titleSteve Klabnik2012-11-291-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 Klabnik2012-11-291-4/+4
| | | | Talked with @fxn about this. Bullet points should have periods at the ends.
* Migrations: Fix opening bullets.Steve Klabnik2012-11-291-2/+2
| | | | The wording of these was a bit off, so I fixed them.
* Migrations: move massive paragraph out of intro.Steve Klabnik2012-11-291-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 syntaxAgis Anastasopoulos2012-11-161-22/+22
|
* Changed comment section to be more explicit. I had an issue with rolling ↵John Gallagher2012-10-271-2/+3
| | | | back a migration and couldn't understand why 'rake db:reset' didn't work.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-10-211-7/+8
|\ | | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/slice.rb guides/source/active_support_core_extensions.md