diaspora/db/migrate/20110604012703_drop_mongo_remains.rb
Pistos 57369af7a1 drop_table (with later versions of Rails?) doesn't work with PostgreSQL with a non-root DB user.
You get problems like:

  ERROR:  permission denied: "RI_ConstraintTrigger_506060" is a system trigger

This change is necessary or else nobody will be able to install Diaspora with PostgreSQL.
2011-12-12 22:55:21 -05:00

18 lines
478 B
Ruby

class DropMongoRemains < ActiveRecord::Migration
def self.up
remove_index :aspects, :mongo_id
remove_index :comments, :mongo_id
remove_index :contacts, :mongo_id
remove_index :invitations, :mongo_id
remove_index :people, :mongo_id
remove_index :posts, :mongo_id
remove_index :profiles, :mongo_id
remove_index :services, :mongo_id
remove_index :users, :mongo_id
execute 'DROP TABLE mongo_notifications'
end
def self.down
end
end