Sha256: 2c38d5f523d1778ed608a4e8fd52a3b0e1d7b56036c2174167d41e3d10af64f1
Contents?: true
Size: 306 Bytes
Versions: 5
Compression:
Stored size: 306 Bytes
Contents
class ChangeHostBuildDefaultToFalse < ActiveRecord::Migration def self.up change_column :hosts, :build, :boolean, :default => false Host.unscoped.find_each {|h| h.update_attribute :build, false} end def self.down change_column :hosts, :build, :boolean, :default => true end end
Version data entries
5 entries across 5 versions & 1 rubygems