Sha256: 74661b9405c7c04c3302cae04c0f6097c2059ea86626bc81138b620e1faa5355

Contents?: true

Size: 306 Bytes

Versions: 13

Compression:

Stored size: 306 Bytes

Contents

class CreateTags < ActiveRecord::Migration
  def self.up
    create_table :tags do |t|
      t.string :title
      t.timestamps
    end

    create_table :products_tags, :id => false do |t|
      t.belongs_to :tag
      t.belongs_to :product
    end

  end


  def self.down
    drop_table :tags
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tabulatr-0.4.2 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.4.1 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.4.0 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.3.0 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.2.0 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.1.3 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.1.2 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.1.1 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.1.0 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.0.5 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.0.4 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.0.3 spec/dummy_app/db/migrate/20110212104327_create_tags.rb
tabulatr-0.0.2 spec/dummy_app/db/migrate/20110212104327_create_tags.rb