cirandas.net

ref: master

db/migrate/032_favorite_enterprises_people.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
class FavoriteEnterprisesPeople < ActiveRecord::Migration
  def self.up
    create_table :favorite_enteprises_people, :id => false do |t|
      t.integer :person_id
      t.integer :enterprise_id
    end
  end

  def self.down
    drop_table :favorite_enteprises_people
  end
end