Sha256: b88aa6eed3a198f256e6e5da2e4d1f80097da1a3060159f567be09c11608a020

Contents?: true

Size: 453 Bytes

Versions: 17

Compression:

Stored size: 453 Bytes

Contents

class AddDeadEntryFields < ActiveRecord::Migration
  def self.up
    add_column :entries, :permalink_good, :boolean, :default => true
    add_column :entries, :permalink_checked_at, :datetime, :default => '1971-01-01 01:01:01', :null => false
    add_index :entries, :permalink_good
  end

  def self.down
    remove_index :entries, :permalink_good
    remove_column :entries, :permalink_good
    remove_column :entries, :permalink_checked_at
  end
end

Version data entries

17 entries across 15 versions & 2 rubygems

Version Path
muck-services-3.3.3 test/db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.3.3 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-auth-3.5.4 test/db/migrate/20100903205928_add_dead_entry_fields.rb
muck-auth-3.5.3 test/db/migrate/20100903205928_add_dead_entry_fields.rb
muck-auth-3.5.2 test/db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.3.2 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.3.1 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.3.0 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.2.2 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.2.1 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.2.0 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.1.1 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.1.0 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-0.1.47 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.0.0 test/rails_test/db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-3.0.0 db/migrate/20100903205928_add_dead_entry_fields.rb
muck-services-0.1.46 db/migrate/20100903205928_add_dead_entry_fields.rb