Class: SetDefaultUserStateToActive

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

Class Method Summary collapse

Class Method Details

.downObject



6
7
8
# File 'lib/branston/db/migrate/20100812140532_set_default_user_state_to_active.rb', line 6

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

.upObject



2
3
4
# File 'lib/branston/db/migrate/20100812140532_set_default_user_state_to_active.rb', line 2

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