Sha256: e0241c4b42ac30ce287eb5871bb02b75e2e7fa279d21978861f7cf179e703cd0
Contents?: true
Size: 389 Bytes
Versions: 14
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true class MoveLastConnectionToLastSignInAt < ActiveRecord::Migration[4.2] class User < ActiveRecord::Base end def up User.find_each do |user| user.update_attribute(:last_sign_in_at, user.last_connection) end end def down User.find_each do |user| user.update_attribute(:last_connection, user.last_sign_in_at) end end end
Version data entries
14 entries across 14 versions & 1 rubygems