Class: SetDefaultUserStateToPending
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- SetDefaultUserStateToPending
- Defined in:
- lib/branston/db/migrate/20100729125551_set_default_user_state_to_pending.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
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 |
.up ⇒ Object
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 |