Sha256: 5ed27827cce5a7ebd1645585911f7dd072d19823a70c88641a64ecf9569290f9

Contents?: true

Size: 168 Bytes

Versions: 86

Compression:

Stored size: 168 Bytes

Contents

class FixPostTypeKinds < ActiveRecord::Migration
  def change
    Pulitzer::PostType.where(kind: [1,2]).each do |pt|
      pt.update_columns(kind: 0)
    end
  end
end

Version data entries

86 entries across 84 versions & 1 rubygems

Version Path
pulitzer-0.15.31 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.30 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.29 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.28 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.27 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.26 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.25 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.24 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.23 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.22 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.21 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.20 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.19 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.18 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.17 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.16 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.15 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.14 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.13 db/migrate/20160516150237_fix_post_type_kinds.rb
pulitzer-0.15.12 db/migrate/20160516150237_fix_post_type_kinds.rb