Skip to content

Commit 0087e46

Browse files
committedAug 9, 2015
remove data transformation from migration, that wil take too long on production.
1 parent 073a519 commit 0087e46

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
class AddTitleToMembership < ActiveRecord::Migration
22
def change
33
add_column :teams_members, :title, :string
4-
Teams::Member.includes(:user).find_each(batch_size: 200) do |membership|
5-
membership.update_attribute(:title, membership.user.title)
6-
end
74
end
85
end

0 commit comments

Comments
 (0)