Sha256: d12f6cd8ed602251956828ba052d4feb19a4e82d21b25cded7b2dfcf8988c3c4

Contents?: true

Size: 288 Bytes

Versions: 5

Compression:

Stored size: 288 Bytes

Contents

class AddStateToUser < ActiveRecord::Migration
  def self.up
    add_column :users, :state, :string, :null => :no, :default => 'passive'
    add_column :users, :deleted_at, :datetime
  end

  def self.down
    remove_column :users, :state
    remove_column :users, :deleted_at
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
branston-0.6.6 lib/branston/db/migrate/20100723161424_add_state_to_user.rb
branston-0.6.5 lib/branston/db/migrate/20100723161424_add_state_to_user.rb
branston-0.6.4 lib/branston/db/migrate/20100723161424_add_state_to_user.rb
branston-0.6.3 lib/branston/db/migrate/20100723161424_add_state_to_user.rb
branston-0.6.2 lib/branston/db/migrate/20100723161424_add_state_to_user.rb