Sha256: 041269130824ea32518bb0311dd35ba7419efcad678ef7e140cecebf2250ac40

Contents?: true

Size: 237 Bytes

Versions: 5

Compression:

Stored size: 237 Bytes

Contents

class SetDefaultUserStateToActive < ActiveRecord::Migration
  def self.up
    change_column :users, :state, :string, :default => "active"
  end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
branston-0.6.6 lib/branston/db/migrate/20100812140532_set_default_user_state_to_active.rb
branston-0.6.5 lib/branston/db/migrate/20100812140532_set_default_user_state_to_active.rb
branston-0.6.4 lib/branston/db/migrate/20100812140532_set_default_user_state_to_active.rb
branston-0.6.3 lib/branston/db/migrate/20100812140532_set_default_user_state_to_active.rb
branston-0.6.2 lib/branston/db/migrate/20100812140532_set_default_user_state_to_active.rb