ref: master
db/migrate/20131128161159_terms_forum_people.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
class TermsForumPeople < ActiveRecord::Migration def self.up create_table :terms_forum_people, :id => false do |t| t.integer :forum_id t.integer :person_id end add_index :terms_forum_people, [:forum_id, :person_id] end def self.down remove_index :terms_forum_people, [:forum_id, :person_id] drop_table :terms_forum_people end end |