1. 15 Dec, 2016 1 commit
  2. 14 Dec, 2016 1 commit
  3. 13 Dec, 2016 2 commits
  4. 24 Oct, 2016 2 commits
  5. 29 Jul, 2016 4 commits
  6. 13 Jun, 2016 1 commit
  7. 18 May, 2016 1 commit
  8. 10 May, 2016 1 commit
  9. 09 May, 2016 1 commit
  10. 13 Apr, 2016 1 commit
  11. 22 Mar, 2016 1 commit
  12. 26 Feb, 2016 1 commit
  13. 18 Feb, 2016 1 commit
  14. 12 Feb, 2016 1 commit
  15. 11 Feb, 2016 1 commit
    • Annotate should reset the cached information about columns · 528c0df7
      akihiro17 authored
      Annotate should reset the cached information about columns because Annotate may output old information if we load ActiveRecord::Base class in migration files.
      
      For example, if we have a following migration file and execute 'rake db:migrate', Annote does not output the default value and a not null constraint of the `some_value` column.
      
      ```ruby
      class CreatePosts < ActiveRecord::Migration
        def change
          create_table :posts do |t|
            t.integer :some_value
          end
      
          # add a not null constraint to the some_value column
      
          # should update some_value with not null values
          # because records might exist which have null value in the some_value column
      
          Post.update_all(some_value: 1)
      
          change_column_null(:posts, :some_value, false)
          change_column_default(:posts, :some_value, 1)
        end
      end
      ```
      
      This commit fixes the above issue.
  16. 31 Jan, 2016 1 commit
  17. 25 Jan, 2016 2 commits
  18. 19 Jan, 2016 4 commits
  19. 16 Jan, 2016 1 commit
  20. 15 Jan, 2016 1 commit
  21. 11 Jan, 2016 2 commits
  22. 30 Dec, 2015 3 commits
  23. 27 Dec, 2015 2 commits
  24. 25 Dec, 2015 2 commits
  25. 12 Dec, 2015 1 commit
  26. 10 Dec, 2015 1 commit