Skip to content

Commit

Permalink
remove data transformation from migration, that wil take too long on …
Browse files Browse the repository at this point in the history
…production.
  • Loading branch information
seuros committed Aug 9, 2015
1 parent 073a519 commit 0087e46
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions db/migrate/20150809160133_add_title_to_membership.rb
@@ -1,8 +1,5 @@
class AddTitleToMembership < ActiveRecord::Migration
def change
add_column :teams_members, :title, :string
Teams::Member.includes(:user).find_each(batch_size: 200) do |membership|
membership.update_attribute(:title, membership.user.title)
end
end
end

0 comments on commit 0087e46

Please sign in to comment.