Skip to content

Commit 5320d5f

Browse files
authored
Merge pull request #30 from zendesk/bquorning.drop-ar-3
Drop support for ActiveRecord version 3.x.x
2 parents 962ce11 + 1ef2644 commit 5320d5f

File tree

10 files changed

+8
-70
lines changed

10 files changed

+8
-70
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: .
33
specs:
44
migration_tools (1.6.0)
5-
activerecord (>= 3.2.6, < 6.1)
5+
activerecord (>= 4.2.0, < 6.1)
66

77
GEM
88
remote: https://rubygems.org/

gemfiles/rails3.2.gemfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

gemfiles/rails3.2.gemfile.lock

Lines changed: 0 additions & 54 deletions
This file was deleted.

gemfiles/rails4.2.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: ..
33
specs:
44
migration_tools (1.6.0)
5-
activerecord (>= 3.2.6, < 6.1)
5+
activerecord (>= 4.2.0, < 6.1)
66

77
GEM
88
remote: https://rubygems.org/

gemfiles/rails5.0.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: ..
33
specs:
44
migration_tools (1.6.0)
5-
activerecord (>= 3.2.6, < 6.1)
5+
activerecord (>= 4.2.0, < 6.1)
66

77
GEM
88
remote: https://rubygems.org/

gemfiles/rails5.1.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: ..
33
specs:
44
migration_tools (1.6.0)
5-
activerecord (>= 3.2.6, < 6.1)
5+
activerecord (>= 4.2.0, < 6.1)
66

77
GEM
88
remote: https://rubygems.org/

gemfiles/rails5.2.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: ..
33
specs:
44
migration_tools (1.6.0)
5-
activerecord (>= 3.2.6, < 6.1)
5+
activerecord (>= 4.2.0, < 6.1)
66

77
GEM
88
remote: https://rubygems.org/

gemfiles/rails6.0.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: ..
33
specs:
44
migration_tools (1.6.0)
5-
activerecord (>= 3.2.6, < 6.1)
5+
activerecord (>= 4.2.0, < 6.1)
66

77
GEM
88
remote: https://rubygems.org/

lib/migration_tools/tasks.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ def migrator(target_version = nil)
3535
).migrations, target_version)
3636
elsif ActiveRecord::VERSION::MAJOR == 5 && ActiveRecord::VERSION::MINOR == 2
3737
migrate_up(ActiveRecord::MigrationContext.new(migrations_paths).migrations, target_version)
38-
elsif ActiveRecord::VERSION::MAJOR > 3
39-
migrate_up(ActiveRecord::Migrator.migrations(migrations_paths), target_version)
4038
else
41-
migrate_up(migrations_paths, target_version)
39+
migrate_up(ActiveRecord::Migrator.migrations(migrations_paths), target_version)
4240
end
4341
end
4442

migration_tools.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Gem::Specification.new "migration_tools", "1.6.0" do |s|
77
s.files = `git ls-files lib`.split("\n")
88
s.license = "Apache-2.0"
99

10-
s.add_runtime_dependency "activerecord", '>= 3.2.6', '< 6.1'
10+
s.add_runtime_dependency "activerecord", '>= 4.2.0', '< 6.1'
1111

1212
s.add_development_dependency "rake"
1313
s.add_development_dependency "bump"

0 commit comments

Comments
 (0)