Project

General

Profile

Bug #421 ยป 0001-Fixes-bug-421-change-literal-1-to-true-in-database-m.patch

Proposed trivial patch, tested against PostgreSQL and SQLite. - Jochen Schalanda, 10/31/2010 02:09 PM

View differences:

db/migrate/20100823181036_add_enabled_to_hosts.rb
class AddEnabledToHosts < ActiveRecord::Migration
def self.up
add_column :hosts, :enabled, :boolean, :default => 1
add_column :hosts, :enabled, :boolean, :default => true
end
def self.down
    (1-1/1)