Sha256: f548abfdacf7ed12aeebecdc7669a92b2316ca97f0f61acf7bba2a78362faaef
Contents?: true
Size: 459 Bytes
Versions: 6
Compression:
Stored size: 459 Bytes
Contents
class CreateSuppliersTaxons < ActiveRecord::Migration def self.up create_table :suppliers_taxons, :id => false do |t| t.integer :supplier_id t.integer :taxon_id end add_index :suppliers_taxons, :supplier_id add_index :suppliers_taxons, :taxon_id end def self.down remove_index :suppliers_taxons, :column => :taxon_id remove_index :suppliers_taxons, :column => :supplier_id drop_table :suppliers_taxons end end
Version data entries
6 entries across 6 versions & 1 rubygems