Sha256: b4ea0fd2339325df35d1e0d75998cb625bff8de7c6b96b5cf2f40bc39e540ad4

Contents?: true

Size: 256 Bytes

Versions: 2

Compression:

Stored size: 256 Bytes

Contents

class CreatePublicSkus < ActiveRecord::Migration
    def change
        add_column :skr_skus, :is_public, :boolean, default: 't'
        Skr::Sku.update_all(is_public: true)
        change_column :skr_skus, :is_public, :boolean, :null => false
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stockor-0.5.0 db/migrate/20160531014306_create_public_skus.rb
stockor-0.4.0 db/migrate/20160531014306_create_public_skus.rb