Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #71 from alphagov/remove_relatedness_done_from_db

Remove relatedness_done from the database
  • Loading branch information...
commit 6ee518abae19209e92944c14eaa3511f392bbd57 2 parents 2a1dc6e + 25d3b03
@fatbusinessman fatbusinessman authored
View
2  Gemfile
@@ -31,7 +31,7 @@ gem 'lograge', '~> 0.1.0'
if ENV['CONTENT_MODELS_DEV']
gem "govuk_content_models", path: '../govuk_content_models'
else
- gem "govuk_content_models", "4.11.0"
+ gem "govuk_content_models", "4.12.0"
end
if ENV['BUNDLE_DEV']
View
6 Gemfile.lock
@@ -120,7 +120,7 @@ GEM
htmlentities (~> 4)
kramdown (~> 0.13.3)
sanitize (= 2.0.3)
- govuk_content_models (4.11.0)
+ govuk_content_models (4.12.0)
bson_ext
differ
gds-api-adapters
@@ -195,7 +195,7 @@ GEM
multipart-post (1.2.0)
net-http-digest_auth (1.2.1)
net-http-persistent (2.7)
- nokogiri (1.5.6)
+ nokogiri (1.5.8)
ntlm-http (0.1.1)
null_logger (0.0.1)
oauth2 (0.8.1)
@@ -322,7 +322,7 @@ DEPENDENCIES
gds-api-adapters (= 4.1.3)
gds-sso (= 3.0.0)
gelf
- govuk_content_models (= 4.11.0)
+ govuk_content_models (= 4.12.0)
jquery-rails (= 2.0.2)
jquery-ui-rails (= 3.0.1)
launchy
View
10 db/migrate/20130320142108_remove_relatedness_done.rb
@@ -0,0 +1,10 @@
+class RemoveRelatednessDone < Mongoid::Migration
+ def self.up
+ Artefact.all.each do |artefact|
+ artefact.unset(:relatedness_done)
+ end
+ end
+
+ def self.down
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.