1. 14 6月, 2013 1 次提交
  2. 28 5月, 2013 2 次提交
  3. 27 5月, 2013 1 次提交
  4. 15 5月, 2013 1 次提交
  5. 14 5月, 2013 1 次提交
  6. 11 5月, 2013 1 次提交
  7. 18 4月, 2013 1 次提交
  8. 24 3月, 2013 1 次提交
  9. 05 3月, 2013 1 次提交
    • Y
      transactions can be turned off per Migration. · b3373908
      Yves Senn 提交于
      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.
      b3373908
  10. 01 3月, 2013 1 次提交
    • S
      Support creating a table migration generator · 20e04157
      Sammy Larbi 提交于
      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.
      20e04157
  11. 21 2月, 2013 1 次提交
  12. 20 2月, 2013 1 次提交
  13. 20 1月, 2013 1 次提交
  14. 30 12月, 2012 2 次提交
  15. 27 12月, 2012 1 次提交
    • S
      Note about migration timestamps. · d9ce4fa7
      Steve Klabnik 提交于
      We should mention that the ordering matters with regards
      to timestamps, and not imply that it's just for uniqueness
      purposes.
      
      Closes #8610.
      d9ce4fa7
  16. 22 12月, 2012 1 次提交
  17. 08 12月, 2012 1 次提交
  18. 03 12月, 2012 1 次提交
  19. 02 12月, 2012 1 次提交
    • S
      Migration Guide: General fix-up · 4a938362
      Steve Klabnik 提交于
      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
      4a938362
  20. 30 11月, 2012 1 次提交
  21. 29 11月, 2012 4 次提交
  22. 16 11月, 2012 1 次提交
  23. 28 10月, 2012 1 次提交
  24. 17 10月, 2012 2 次提交
  25. 14 10月, 2012 1 次提交
  26. 11 10月, 2012 1 次提交
    • K
      Expand caveat about models in migrations (rails guide) · a1d2f693
      Katrina Owen 提交于
      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.
      a1d2f693
  27. 07 10月, 2012 1 次提交
  28. 02 10月, 2012 3 次提交
  29. 22 9月, 2012 1 次提交
  30. 18 9月, 2012 3 次提交