activerecord 3.2.8.rc1 → 3.2.8.rc2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activerecord might be problematic. Click here for more details.
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## Rails 3.2.8 ##
|
2
2
|
|
3
|
+
* Do not consider the numeric attribute as changed if the old value is zero and the new value
|
4
|
+
is not a string.
|
5
|
+
Fixes #7237.
|
6
|
+
|
7
|
+
*Rafael Mendonça França*
|
8
|
+
|
3
9
|
* Removes the deprecation of `update_attribute`. *fxn*
|
4
10
|
|
5
11
|
* Reverted the deprecation of `composed_of`. *Rafael Mendonça França*
|
@@ -20,8 +26,6 @@
|
|
20
26
|
|
21
27
|
*Rafael Mendonça França*
|
22
28
|
|
23
|
-
* update_columns added. *Sebastián Martínez*
|
24
|
-
|
25
29
|
## Rails 3.2.7 (Jul 26, 2012) ##
|
26
30
|
|
27
31
|
* `:finder_sql` and `:counter_sql` options on collection associations
|
@@ -104,7 +104,7 @@ module ActiveRecord
|
|
104
104
|
|
105
105
|
def changes_from_zero_to_string?(old, value)
|
106
106
|
# For columns with old 0 and value non-empty string
|
107
|
-
old == 0 && value.present? && value != '0'
|
107
|
+
old == 0 && value.is_a?(String) && value.present? && value != '0'
|
108
108
|
end
|
109
109
|
end
|
110
110
|
end
|
@@ -200,7 +200,7 @@ db_namespace = namespace :db do
|
|
200
200
|
end
|
201
201
|
|
202
202
|
desc 'Display status of migrations'
|
203
|
-
task :status => [:environment, :load_config
|
203
|
+
task :status => [:environment, :load_config] do
|
204
204
|
config = ActiveRecord::Base.configurations[Rails.env]
|
205
205
|
ActiveRecord::Base.establish_connection(config)
|
206
206
|
unless ActiveRecord::Base.connection.table_exists?(ActiveRecord::Migrator.schema_migrations_table_name)
|
@@ -253,7 +253,7 @@ db_namespace = namespace :db do
|
|
253
253
|
end
|
254
254
|
|
255
255
|
# desc "Retrieves the charset for the current environment's database"
|
256
|
-
task :charset => [:environment, :load_config
|
256
|
+
task :charset => [:environment, :load_config] do
|
257
257
|
config = ActiveRecord::Base.configurations[Rails.env]
|
258
258
|
case config['adapter']
|
259
259
|
when /mysql/
|
@@ -271,7 +271,7 @@ db_namespace = namespace :db do
|
|
271
271
|
end
|
272
272
|
|
273
273
|
# desc "Retrieves the collation for the current environment's database"
|
274
|
-
task :collation => [:environment, :load_config
|
274
|
+
task :collation => [:environment, :load_config] do
|
275
275
|
config = ActiveRecord::Base.configurations[Rails.env]
|
276
276
|
case config['adapter']
|
277
277
|
when /mysql/
|
@@ -311,7 +311,7 @@ db_namespace = namespace :db do
|
|
311
311
|
|
312
312
|
namespace :fixtures do
|
313
313
|
desc "Load fixtures into the current environment's database. Load specific fixtures using FIXTURES=x,y. Load from subdirectory in test/fixtures using FIXTURES_DIR=z. Specify an alternative path (eg. spec/fixtures) using FIXTURES_PATH=spec/fixtures."
|
314
|
-
task :load => [:environment, :load_config
|
314
|
+
task :load => [:environment, :load_config] do
|
315
315
|
require 'active_record/fixtures'
|
316
316
|
|
317
317
|
ActiveRecord::Base.establish_connection(Rails.env)
|
@@ -349,7 +349,7 @@ db_namespace = namespace :db do
|
|
349
349
|
|
350
350
|
namespace :schema do
|
351
351
|
desc 'Create a db/schema.rb file that can be portably used against any DB supported by AR'
|
352
|
-
task :dump => [:environment, :load_config
|
352
|
+
task :dump => [:environment, :load_config] do
|
353
353
|
require 'active_record/schema_dumper'
|
354
354
|
filename = ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb"
|
355
355
|
File.open(filename, "w:utf-8") do |file|
|
@@ -376,7 +376,7 @@ db_namespace = namespace :db do
|
|
376
376
|
|
377
377
|
namespace :structure do
|
378
378
|
desc 'Dump the database structure to db/structure.sql. Specify another file with DB_STRUCTURE=db/my_structure.sql'
|
379
|
-
task :dump => [:environment, :load_config
|
379
|
+
task :dump => [:environment, :load_config] do
|
380
380
|
abcs = ActiveRecord::Base.configurations
|
381
381
|
filename = ENV['DB_STRUCTURE'] || File.join(Rails.root, "db", "structure.sql")
|
382
382
|
case abcs[Rails.env]['adapter']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.8.
|
4
|
+
version: 3.2.8.rc2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.8.
|
21
|
+
version: 3.2.8.rc2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2.8.
|
29
|
+
version: 3.2.8.rc2
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: activemodel
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - '='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 3.2.8.
|
37
|
+
version: 3.2.8.rc2
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 3.2.8.
|
45
|
+
version: 3.2.8.rc2
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: arel
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|