Skip to content

Instantly share code, notes, and snippets.

@nicinabox
Created June 29, 2011 20:37

Revisions

  1. nicinabox renamed this gist Jun 29, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. nicinabox revised this gist Jun 29, 2011. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,5 @@ class AddAreasPortfolioEntries < ActiveRecord::Migration

    def self.down
    drop_table "areas_portfolio_entries"
    remove_index :areas_portfolio_entries, :portfolio_entry_id
    remove_index :areas_portfolio_entries, :area_id
    end
    end
  3. nicinabox revised this gist Jun 29, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ class AddAreasPortfolioEntries < ActiveRecord::Migration
    def self.up
    create_table "areas_portfolio_entries", :id => false do |t|
    t.references :portfolio_entry
    t.references :area_id
    t.references :area
    end
    add_index :areas_portfolio_entries, :portfolio_entry_id
    add_index :areas_portfolio_entries, :area_id
  4. nicinabox revised this gist Jun 29, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    class AddAreasPortfolioEntries < ActiveRecord::Migration
    def self.up
    create_table "areas_portfolio_entries", :id => false do |t|
    t.integer :portfolio_entry_id
    t.integer :area_id
    t.references :portfolio_entry
    t.references :area_id
    end
    add_index :areas_portfolio_entries, :portfolio_entry_id
    add_index :areas_portfolio_entries, :area_id
  5. nicinabox created this gist Jun 29, 2011.
    16 changes: 16 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    class AddAreasPortfolioEntries < ActiveRecord::Migration
    def self.up
    create_table "areas_portfolio_entries", :id => false do |t|
    t.integer :portfolio_entry_id
    t.integer :area_id
    end
    add_index :areas_portfolio_entries, :portfolio_entry_id
    add_index :areas_portfolio_entries, :area_id
    end

    def self.down
    drop_table "areas_portfolio_entries"
    remove_index :areas_portfolio_entries, :portfolio_entry_id
    remove_index :areas_portfolio_entries, :area_id
    end
    end