This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_rodax_crm/db/migrate/034_create_contacts_contracts.rb
2012-01-03 21:11:44 +00:00

15 lines
325 B
Ruby

class CreateContactsContracts < ActiveRecord::Migration
def self.up
create_table :contacts_contracts, :id => false do |t|
t.integer :contract_id
t.integer :contact_id
end
add_index :contacts_contracts, [:contract_id, :contact_id]
end
def self.down
drop_table :contacts_contracts
end
end