Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove old migration rake task

  • Loading branch information...
commit 37fe9491f16035bc422d1e4b2c56f7bad5225243 1 parent 42ed798
@jamiecobbett jamiecobbett authored
Showing with 0 additions and 39 deletions.
  1. +0 −39 lib/tasks/migrate.rake
View
39 lib/tasks/migrate.rake
@@ -1,43 +1,4 @@
namespace :migrate do
-
- desc "Copy all users into app-specific user collections"
- task :duplicate_users_for_panopticon_and_publisher => :environment do
- require 'user'
- # Not really required, but a guard against running with the newer User model
- class User
- self.collection_name = "users"
- end
-
- class PanopticonUser
- include Mongoid::Document
- include Mongoid::Timestamps
-
- field "name", type: String
- field "uid", type: String
- field "version", type: Integer
- field "email", type: String
- field "permissions", type: Hash
- field "remotely_signed_out", type: Boolean, default: false
- end
-
- class PublisherUser
- include Mongoid::Document
- include Mongoid::Timestamps
-
- field "name", type: String
- field "uid", type: String
- field "version", type: Integer
- field "email", type: String
- field "permissions", type: Hash
- field "remotely_signed_out", type: Boolean, default: false
- end
-
- User.all.each do |user|
- PanopticonUser.timeless.create!(user.attributes)
- PublisherUser.timeless.create!(user.attributes)
- end
- end
-
desc "Sets the businesslink legacy source on all business proposition content"
task :set_businesslink_tag_on_buisiness_artefacts => :environment do
Artefact.observers.disable :update_search_observer, :update_router_observer do
Please sign in to comment.
Something went wrong with that request. Please try again.