Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
separate the encryption migration jobs, and update the link for trent…
Browse files Browse the repository at this point in the history
… U's contact
  • Loading branch information
weiweishi committed Feb 1, 2017
1 parent e2e55ac commit 4cb8d54
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 21 deletions.
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ Organizations may provide their own DMP templates. The Portage template is the d
<p><b>Mount Allison University</b>: <a href='mailto:rcollings@mta.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Ruth Collings</a></p>
<p><b>Queen's University</b>: <a href='mailto:moonj@queensu.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Jeff Moon</a>, <a href='mailto:coopera@queensu.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Alexandra Cooper</a></p>
<p><b>Simon Fraser University</b>: <a href='mailto:data-services@sfu.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Carla Graebner, Jessica Gallinger and Alex Garnett</a></p>
<p><b>Trent University</b>: <a href='bznamirowski@trentu.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Barbara Znamirowski</a></p>
<p><b>Trent University</b>: <a href='mailto:bznamirowski@trentu.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Barbara Znamirowski</a></p>
<p><b>Université de Moncton</b>: <a href='mailto:victoria.volkanova@umoncton.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Victoria Volkanova</a></p>
<p><b>University of British Columbia</b>: <a href='mailto:eugene.barsky@ubc.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Eugene Barsky</a>, <a href='mailto:research.data@ubc.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Research Data Team</a></p>
<p><b>University of Alberta</b>: <a href='mailto:data@ualberta.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Research Data Management Group</a>, <a href='mailto:larry.laliberte@ualberta.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Larry Laliberte</a></p>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ L'Assistant PGD est un outil d'aide à la préparation d'un plan de gestion des
<p><b>Mount Allison University</b>: <a href='mailto:rcollings@mta.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Ruth Collings</a></p>
<p><b>Queen's University</b>: <a href='mailto:moonj@queensu.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Jeff Moon</a>, <a href='mailto:coopera@queensu.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Alexandra Cooper</a></p>
<p><b>Simon Fraser University</b>: <a href='mailto:data-services@sfu.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Carla Graebner, Jessica Gallinger and Alex Garnett</a></p>
<p><b>Trent University</b>: <a href='bznamirowski@trentu.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Barbara Znamirowski</a></p>
<p><b>Trent University</b>: <a href='mailto:bznamirowski@trentu.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Barbara Znamirowski</a></p>
<p><b>Université de Moncton</b>: <a href='mailto:victoria.volkanova@umoncton.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Victoria Volkanova</a></p>
<p><b>University of British Columbia</b>: <a href='mailto:eugene.barsky@ubc.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Eugene Barsky</a>, <a href='mailto:research.data@ubc.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Research Data Team</a></p>
<p><b>University of Alberta</b>: <a href='mailto:data@ualberta.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Research Data Management Group</a>, <a href='mailto:larry.laliberte@ualberta.ca?Subject=DMP%20Assistant%20Inquiry' target='_top'>Larry Laliberte</a></p>
Expand Down
10 changes: 1 addition & 9 deletions db/migrate/20161125202243_encrypt_answer_text.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
class EncryptAnswerText < ActiveRecord::Migration
def up
def change
rename_column :answers, :text, :old_text
add_column :answers, :encrypted_text, :string
add_column :answers, :encrypted_text_iv, :string
Answer.find_each do |a|
a.text = a.old_text
a.save
end
remove_column :answers, :old_text
end

def down
end
end
10 changes: 1 addition & 9 deletions db/migrate/20161213163812_encrypt_comment_text.rb.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
class EncryptCommentText < ActiveRecord::Migration
def up
def change
rename_column :comments, :text, :old_text
add_column :comments, :encrypted_text, :string
add_column :comments, :encrypted_text_iv, :string
Comment.find_each do |a|
a.text = a.old_text
a.save
end
remove_column :comments, :old_text
end

def down
end
end

9 changes: 9 additions & 0 deletions db/migrate/20170201153620_migrate_answer_data.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class MigrateAnswerData < ActiveRecord::Migration
def change
Answer.find_each do |a|
a.text = a.old_text
a.save
end
remove_column :answers, :old_text
end
end
9 changes: 9 additions & 0 deletions db/migrate/20170201153728_migrate_comment_data.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class MigrateCommentData < ActiveRecord::Migration
def change
Comment.find_each do |a|
a.text = a.old_text
a.save
end
remove_column :comments, :old_text
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20161213175642) do
ActiveRecord::Schema.define(:version => 20170131174226) do

create_table "answers", :force => true do |t|
t.integer "plan_id"
Expand Down

0 comments on commit 4cb8d54

Please sign in to comment.