Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
| * | instructions for running migrations in another ENV | schneems | 2012-10-02 | 1 | -1/+9 |
| | | |||||
* | | [Guides] Format content for small devices | Joe Fiorini | 2012-10-06 | 1 | -1/+1 |
|/ | |||||
* | fix some md syntax errors and general revisions [ci skip] | Vijay Dev | 2012-09-21 | 1 | -2/+2 |
| | |||||
* | Fix remaining formatting problems in the guide | Prem Sichanugrist | 2012-09-17 | 1 | -5/+5 |
| | |||||
* | Convert all tables to Markdown syntax | Prem Sichanugrist | 2012-09-17 | 1 | -9/+5 |
| | |||||
* | Convert all the links into Markdown format | Prem Sichanugrist | 2012-09-17 | 1 | -8/+8 |
| | |||||
* | Convert all inline codes to Markdown syntax | Prem Sichanugrist | 2012-09-17 | 1 | -158/+158 |
| | |||||
* | change shell to bash | Prem Sichanugrist | 2012-09-17 | 1 | -14/+14 |
| | |||||
* | Convert inline code tags to Markdown | Prem Sichanugrist | 2012-09-17 | 1 | -5/+5 |
| | |||||
* | Convert heading tags and heading section | Prem Sichanugrist | 2012-09-17 | 1 | -30/+38 |
| | |||||
* | Convert code blocks into GFM style | Prem Sichanugrist | 2012-09-17 | 1 | -98/+98 |
| | |||||
* | Rename the rest of the guides to Markdown | Prem Sichanugrist | 2012-09-17 | 1 | -0/+977 |