diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-07-02 13:58:04 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-07-02 13:58:04 +0100 |
commit | cef2b1074811567561f01f20fbffebb6baaee4f2 (patch) | |
tree | 83e51f7384997ed5359ff62815e9e3ad3bb7f815 | |
parent | de929cfe8c0f297c9945189f1456bba3908498a1 (diff) |
Do not pre-populate the API key
It takes too long, and the mySociety deployment system runs
these migrations while the site is down.
-rw-r--r-- | db/migrate/112_add_api_key_to_public_bodies.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/db/migrate/112_add_api_key_to_public_bodies.rb b/db/migrate/112_add_api_key_to_public_bodies.rb index 24961612d..1a01b3d78 100644 --- a/db/migrate/112_add_api_key_to_public_bodies.rb +++ b/db/migrate/112_add_api_key_to_public_bodies.rb @@ -4,12 +4,12 @@ class AddApiKeyToPublicBodies < ActiveRecord::Migration def self.up add_column :public_bodies, :api_key, :string - PublicBody.find_each do |pb| - pb.api_key = SecureRandom.base64(32) - pb.save! - end - - change_column_null :public_bodies, :api_key, false + # PublicBody.find_each do |pb| + # pb.api_key = SecureRandom.base64(32) + # pb.save! + # end + # + # change_column_null :public_bodies, :api_key, false end def self.down |