Sha256: b1aa089360a94615685c28f634e91a277c129eccc119c336edaa948e2695e9ad
Contents?: true
Size: 398 Bytes
Versions: 15
Compression:
Stored size: 398 Bytes
Contents
class ChangeUserGroupsVerifiedToTimestamp < ActiveRecord::Migration[5.0] def change ActiveRecord::Base.transaction do add_column :decidim_user_groups, :verified_at, :datetime ActiveRecord::Base.connection.execute("UPDATE decidim_user_groups SET verified_at = '#{Time.current.to_s(:db)}' WHERE verified = 't'") remove_column :decidim_user_groups, :verified end end end
Version data entries
15 entries across 15 versions & 2 rubygems