Sha256: a568f090acbd93c3cc02925b0166a7641b2a279d8b3df9047bfbceb3136bc2b1

Contents?: true

Size: 383 Bytes

Versions: 13

Compression:

Stored size: 383 Bytes

Contents

class ReditAutoPublishSiteSettings < ActiveRecord::Migration
  def self.up
    add_column :sites, :auto_publish, :boolean
    add_column :sites, :redit_time, :integer
    execute "UPDATE sites SET auto_publish=0"
    execute "UPDATE sites SET redit_time='7200'" # 2 hours
  end

  def self.down
    remove_column :sites, :auto_publish
    remove_column :sites, :redit_time
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zena-0.16.9 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.16.8 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.16.7 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.16.6 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.16.5 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.16.4 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.16.3 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.16.2 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.16.1 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.16.0 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.15.2 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.15.1 db/migrate/030_redit_auto_publish_site_settings.rb
zena-0.15.0 db/migrate/030_redit_auto_publish_site_settings.rb