3scale/porta

View on GitHub
db/migrate/20081119135532_remove_viewstatus_from_profiles_and_accounts.rb

Summary

Maintainability
A
0 mins
Test Coverage
class RemoveViewstatusFromProfilesAndAccounts < ActiveRecord::Migration
  def self.up
    change_table :profiles do |t|
      t.remove :viewstatus
    end

    change_table :accounts do |t|
      t.remove :viewstatus
    end
  end

  def self.down
    change_table :profiles do |t|
      t.string :viewstatus, :default => 'PRIVATE'
    end

    change_table :accounts do |t|
      t.string :viewstatus, :default => 'PRIVATE'
    end
  end
end