Skip to content

Commit

Permalink
add 5.2 version number to the migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
tworrall committed Jul 9, 2020
1 parent 38256f9 commit 9e2ddd6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CondCreateBlacklightCornellRequestsRequests < ActiveRecord::Migration
class CondCreateBlacklightCornellRequestsRequests < ActiveRecord::Migration[5.2]
def up
if !ActiveRecord::Base.connection.table_exists? :blacklight_cornell_requests_requests
create_table :blacklight_cornell_requests_requests do |t|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CondCreateBlacklightCornellRequestsCircPolicyLocs < ActiveRecord::Migration
class CondCreateBlacklightCornellRequestsCircPolicyLocs < ActiveRecord::Migration[5.2]
# the attributes in the model are defined in upper case so these must be upper case.
def up
if !ActiveRecord::Base.connection.table_exists? :blacklight_cornell_requests_circ_policy_locs
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20141205183450_add_new_delivery_location.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddNewDeliveryLocation < ActiveRecord::Migration
class AddNewDeliveryLocation < ActiveRecord::Migration[5.2]
def change
# Add new row for NYC-CFEM program
BlacklightCornellRequests::Circ_policy_locs.create :circ_group_id => 1, :location_id => 250, :pickup_location => 'Y'
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170920143824_change_circ_policy_group.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeCircPolicyGroup < ActiveRecord::Migration
class ChangeCircPolicyGroup < ActiveRecord::Migration[5.2]
def change
av = BlacklightCornellRequests::Circ_policy_locs.where(:LOCATION_ID => 216).first
if !av.nil?
Expand Down
2 changes: 1 addition & 1 deletion lib/blacklight_cornell_requests/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module BlacklightCornellRequests
VERSION = "3.2.0"
VERSION = "3.2.1"
end
3 changes: 3 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release Notes - blacklight-cornell-requests

## v3.2.1
- Add version number ([5.2]) to migration files.

## v3.2.0
- Some requests are pulling copies from libraries that are currently invalid due to Covid-19. Can only request from 1 of the 5 valid libraries.

Expand Down

0 comments on commit 9e2ddd6

Please sign in to comment.