diaspora/db/migrate/20110830170929_remove_pod_stats_table.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

16 lines
304 B
Ruby

class RemovePodStatsTable < ActiveRecord::Migration
def self.up
execute 'DROP TABLE pod_stats'
end
def self.down
create_table :pod_stats do |t|
t.integer :error_code
t.integer :person_id
t.text :error_message
t.integer :pod_id
t.timestamps
end
end
end