Browse Source
These fields are set using IDs from the previous CORE service. There was an incorrect assumption that these fields were integers so we were casting them as such. We have discovered that these fields are strings (e.g., `027`) so this change adjusts our types.pull/988/head
James Rose
2 years ago
committed by
GitHub
11 changed files with 37 additions and 24 deletions
@ -0,0 +1,13 @@ |
|||||||
|
class ChangeOldVisibleIdType < ActiveRecord::Migration[7.0] |
||||||
|
def up |
||||||
|
change_column :organisations, :old_visible_id, :string |
||||||
|
change_column :schemes, :old_visible_id, :string |
||||||
|
change_column :locations, :old_visible_id, :string |
||||||
|
end |
||||||
|
|
||||||
|
def down |
||||||
|
change_column :organisations, :old_visible_id, :integer |
||||||
|
change_column :schemes, :old_visible_id, :integer |
||||||
|
change_column :locations, :old_visible_id, :integer |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue