cirandas.net

ref: master

db/migrate/027_create_categories_profiles.rb


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

  def self.down
    drop_table :categories_profiles
  end
end