diaspora/db/migrate/20110301202619_drop_statistics.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

9 lines
167 B
Ruby

class DropStatistics < ActiveRecord::Migration
def self.up
execute 'DROP TABLE statistics'
execute 'DROP TABLE data_points'
end
def self.down
end
end