File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
## Rails 4.0.0 (unreleased) ##
2
2
3
- * Fix ActiveRecord ` subclass_from_attrs ` when eager_load is false.
3
+ * Fix ActiveRecord ` subclass_from_attrs ` when ` eager_load ` is false.
4
4
It cannot find subclass because all classes are loaded automatically
5
5
when it needs.
6
6
24
24
Example:
25
25
26
26
sql = Post.connection.unprepared_statement do
27
- Post.first.comments.to_sql
27
+ Post.first.comments.to_sql
28
28
end
29
29
30
30
* Cédric Fabianski*
106
106
Example:
107
107
108
108
class ChangeEnum < ActiveRecord::Migration
109
- self.disable_ddl_transaction!
109
+ disable_ddl_transaction!
110
+
110
111
def up
111
112
execute "ALTER TYPE model_size ADD VALUE 'new_value'"
112
113
end
Original file line number Diff line number Diff line change @@ -339,7 +339,8 @@ def initialize
339
339
# you can turn the automatic transactions off.
340
340
#
341
341
# class ChangeEnum < ActiveRecord::Migration
342
- # self.disable_ddl_transaction!
342
+ # disable_ddl_transaction!
343
+ #
343
344
# def up
344
345
# execute "ALTER TYPE model_size ADD VALUE 'new_value'"
345
346
# end
You can’t perform that action at this time.
0 commit comments