Class: SetDefaultUserStateToPending

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/branston/db/migrate/20100729125551_set_default_user_state_to_pending.rb

Class Method Summary collapse

Class Method Details

.downObject



6
7
8
# File 'lib/branston/db/migrate/20100729125551_set_default_user_state_to_pending.rb', line 6

def self.down
  change_column :users, :state, :string, :default => "passive"
end

.upObject



2
3
4
# File 'lib/branston/db/migrate/20100729125551_set_default_user_state_to_pending.rb', line 2

def self.up
  change_column :users, :state, :string, :default => "pending"
end