Sha256: 4ff5c15313c0539809ce6794134e9cb7cd7ea1d88cedfb39e1d81de703ea5f7b
Contents?: true
Size: 399 Bytes
Versions: 104
Compression:
Stored size: 399 Bytes
Contents
# frozen_string_literal: true class ChangeUserGroupsVerifiedToTimestamp < ActiveRecord::Migration[5.0] def change ActiveRecord::Base.transaction do add_column :decidim_user_groups, :verified_at, :datetime 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
104 entries across 104 versions & 3 rubygems