We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 073a519 commit 0087e46Copy full SHA for 0087e46
db/migrate/20150809160133_add_title_to_membership.rb
@@ -1,8 +1,5 @@
1
class AddTitleToMembership < ActiveRecord::Migration
2
def change
3
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
7
end
8
0 commit comments