Sha256: ab7dcf4e20f7572bf1e29e8cd94a810817b2d35b7f168fabbfe4a15da6dc7164

Contents?: true

Size: 231 Bytes

Versions: 6

Compression:

Stored size: 231 Bytes

Contents

class PageviewsDefaultToZero < ActiveRecord::Migration[5.0]
  def up
    change_column :cas_contents, :pageviews, :integer, default: 0
  end

  def down
    change_column :cas_contents, :pageviews, :integer, default: nil
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 db/migrate/20170919181809_pageviews_default_to_zero.rb
cas-cms-1.0.0.alpha1 db/migrate/20170919181809_pageviews_default_to_zero.rb
cas-cms-0.1.3 db/migrate/20170919181809_pageviews_default_to_zero.rb
cas-cms-0.1.2 db/migrate/20170919181809_pageviews_default_to_zero.rb
cas-cms-0.1.1 db/migrate/20170919181809_pageviews_default_to_zero.rb
cas-cms-0.1.0 db/migrate/20170919181809_pageviews_default_to_zero.rb