aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/migrations.md
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * Revert "divided into folder with the language"Rafael Mendonça França2012-10-171-0/+992
| | | | | | | | | | | | This reverts commit f5b9ed4fbc3215a5fce48985ea372ad3f1182252. REASON: Translation work can not be done in the docrails repository
| * divided into folder with the languageRodrigo Martins2012-10-171-992/+0
| |
| * Fix formatting on migrations guideJaime Iniesta2012-10-141-7/+8
| |
* | Expand caveat about models in migrations (rails guide)Katrina Owen2012-10-101-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/docrailsVijay Dev2012-10-111-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 programmersschneems2012-10-021-0/+2
| |
| * improve wording over `change` method docsschneems2012-10-021-1/+1
| | | | | | | | The feature is available after Rails 3.1 and this is no longer a "new" feature.
| * instructions for running migrations in another ENVschneems2012-10-021-1/+9
| |
* | [Guides] Format content for small devicesJoe Fiorini2012-10-061-1/+1
|/
* fix some md syntax errors and general revisions [ci skip]Vijay Dev2012-09-211-2/+2
|
* Fix remaining formatting problems in the guidePrem Sichanugrist2012-09-171-5/+5
|
* Convert all tables to Markdown syntaxPrem Sichanugrist2012-09-171-9/+5
|
* Convert all the links into Markdown formatPrem Sichanugrist2012-09-171-8/+8
|
* Convert all inline codes to Markdown syntaxPrem Sichanugrist2012-09-171-158/+158
|
* change shell to bashPrem Sichanugrist2012-09-171-14/+14
|
* Convert inline code tags to MarkdownPrem Sichanugrist2012-09-171-5/+5
|
* Convert heading tags and heading sectionPrem Sichanugrist2012-09-171-30/+38
|
* Convert code blocks into GFM stylePrem Sichanugrist2012-09-171-98/+98
|
* Rename the rest of the guides to MarkdownPrem Sichanugrist2012-09-171-0/+977