Skip to content

Commit

Permalink
Fixing migration on heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
joshe committed Aug 19, 2011
1 parent a24e0d5 commit 1514ec1
Showing 1 changed file with 0 additions and 8 deletions.
@@ -1,6 +1,5 @@
class KillJoinEventsTableAndAddEventsUsersTable < ActiveRecord::Migration
def self.up
drop_table :join_events
create_table :events_users, :id => false do |t|
t.integer "event_id"
t.integer "user_id"
Expand All @@ -9,13 +8,6 @@ def self.up
end

def self.down
remove_index :events_users, ["event_id", "user_id"]
drop_table :events_users
create_table :join_events do |t|
t.references :user
t.references :event

t.timestamps
end
end
end

0 comments on commit 1514ec1

Please sign in to comment.