1. 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.
  2. 14 Jul, 2015 2 commits
  3. 20 Jun, 2015 1 commit
  4. 19 Jun, 2015 1 commit
  5. 18 Jun, 2015 1 commit
  6. 17 Jun, 2015 1 commit
  7. 16 Jun, 2015 2 commits
  8. 15 Jun, 2015 1 commit
  9. 12 Jun, 2015 1 commit
  10. 10 Jun, 2015 1 commit
  11. 03 Jun, 2015 2 commits
  12. 25 May, 2015 1 commit
  13. 22 May, 2015 5 commits
  14. 13 Apr, 2015 1 commit
  15. 10 Apr, 2015 3 commits
  16. 30 Mar, 2015 1 commit
  17. 27 Mar, 2015 2 commits
  18. 25 Mar, 2015 1 commit
  19. 20 Mar, 2015 1 commit
  20. 17 Mar, 2015 1 commit
  21. 16 Mar, 2015 1 commit
  22. 15 Mar, 2015 1 commit
  23. 12 Mar, 2015 2 commits
  24. 10 Mar, 2015 3 commits
  25. 09 Mar, 2015 3 commits