Skip to content

Commit

Permalink
Merge pull request #4 from vitalsource/do_not_hardcode_activerecord_v…
Browse files Browse the repository at this point in the history
…ersion

Do not hardcode activerecord version
  • Loading branch information
admande authored Mar 30, 2021
2 parents aca0527 + 35ae8ef commit d2c683d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/table_migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

migration_class =
if ActiveRecord::VERSION::MAJOR >= 5
ActiveRecord::Migration[5.2]
ActiveRecord::Migration[ActiveRecord::VERSION::STRING.to_f]
else
ActiveRecord::Migration
end
Expand Down
2 changes: 1 addition & 1 deletion table_migrator.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = "table_migrator"
s.version = '0.1.2'
s.version = '0.1.3'
s.platform = Gem::Platform::RUBY
s.authors = ["Matt Freels", "Rohith Ravi", "Rick Olson",]
s.email = ["[email protected]"]
Expand Down

0 comments on commit d2c683d

Please sign in to comment.