Sha256: 7eaae494f07a8222b8642269c977b59565ca98810b92dbaf1d40cdf8050fc06f

Contents?: true

Size: 239 Bytes

Versions: 5

Compression:

Stored size: 239 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
branston-0.6.6 lib/branston/db/migrate/20100729125551_set_default_user_state_to_pending.rb
branston-0.6.5 lib/branston/db/migrate/20100729125551_set_default_user_state_to_pending.rb
branston-0.6.4 lib/branston/db/migrate/20100729125551_set_default_user_state_to_pending.rb
branston-0.6.3 lib/branston/db/migrate/20100729125551_set_default_user_state_to_pending.rb
branston-0.6.2 lib/branston/db/migrate/20100729125551_set_default_user_state_to_pending.rb