Sha256: 31dab82c00520bd2070a6c10c6e6af19d66cf46e5c9645af210858a7a9744979
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
class IntegerColumnsToBoolean < ActiveRecord::Migration def self.up change_column "users", "admin", :boolean, :default => false, :null => false change_column "users", "developer", :boolean, :default => false, :null => false end def self.down change_column "users", "admin", :integer, :limit => 1, :default => 0, :null => false change_column "users", "developer", :integer, :limit => 1, :default => 0, :null => false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radiant-0.5.0 | db/migrate/006_integer_columns_to_boolean.rb |
radiant-0.5.1 | db/migrate/006_integer_columns_to_boolean.rb |
radiant-0.5.2 | db/migrate/006_integer_columns_to_boolean.rb |