Sha256: 68ac610c2584d05848a02e0dfb2b2bfbc8ecc0c0975ea012c4fce972c0688321
Contents?: true
Size: 294 Bytes
Versions: 15
Compression:
Stored size: 294 Bytes
Contents
class RemoveLogin < ActiveRecord::Migration def self.up Reader.reset_column_information Reader.all.each do |r| r.nickname ||= r.login r.save if r.changed? end remove_column :readers, :login end def self.down add_column :readers, :login, :string end end
Version data entries
15 entries across 15 versions & 1 rubygems