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