Sha256: ef279c296d3d0a83b81c60f796b62f7c7cdc3a2a236e2fd61852bd17daba1b11

Contents?: true

Size: 351 Bytes

Versions: 30

Compression:

Stored size: 351 Bytes

Contents

class CreateBusinessCategories < ActiveRecord::Migration
  def self.up
    create_table :business_categories do |t|
      t.integer :business_id
      t.integer :category_id
    end
    add_index :business_categories, :business_id
    add_index :business_categories, :category_id
  end
  
  def self.down
    drop_table :business_categories
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
migrant-1.5.0 test/verified_output/migrations/create_business_categories.rb
migrant-1.4.3 test/verified_output/migrations/create_business_categories.rb
migrant-1.4.1 test/verified_output/migrations/create_business_categories.rb
migrant-1.4.0 test/verified_output/migrations/create_business_categories.rb
migrant-1.3.2 test/verified_output/migrations/create_business_categories.rb
migrant-1.3.1 test/verified_output/migrations/create_business_categories.rb
migrant-1.3.0 test/verified_output/migrations/create_business_categories.rb
migrant-1.2.8 test/verified_output/migrations/create_business_categories.rb
migrant-1.2.7 test/verified_output/migrations/create_business_categories.rb
migrant-1.2.5 test/verified_output/migrations/create_business_categories.rb
migrant-1.2.2 test/verified_output/migrations/create_business_categories.rb
migrant-1.2.1 test/verified_output/migrations/create_business_categories.rb
migrant-1.2.0 test/verified_output/migrations/create_business_categories.rb
migrant-1.1.2 test/verified_output/migrations/create_business_categories.rb
migrant-1.1.1 test/verified_output/migrations/create_business_categories.rb
migrant-1.1.0 test/verified_output/migrations/create_business_categories.rb
migrant-1.0.2 test/verified_output/migrations/create_business_categories.rb
migrant-1.0.1 test/verified_output/migrations/create_business_categories.rb
migrant-1.0.0 test/verified_output/migrations/create_business_categories.rb
migrant-0.2.4 test/verified_output/migrations/create_business_categories.rb