Sha256: f36f959162060c9f858dc4116ac93e84657e2a94ac34356000acff99e5b86487

Contents?: true

Size: 541 Bytes

Versions: 63

Compression:

Stored size: 541 Bytes

Contents

class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories, :id => false do |t|
      t.string :id, :limit => 36, :null => false, :primary => true
      t.string :name

      t.timestamps :lock_version => false
    end

    create_table :categories_mods, :id => false do |t|
      t.string :category_id, :limit => 36
      t.string :mod_id, :limit => 36
    end
    # generate the join tables
  end

  def self.down
    drop_table :categories
    drop_table :categories_mods
  end

end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
six-updater-web-0.17.2 lib/six-updater-web/db/migrate/20100520101652_create_categories.rb
six-updater-web-0.17.1 lib/six-updater-web/db/migrate/20100520101652_create_categories.rb
six-updater-web-0.17.0 lib/six-updater-web/db/migrate/20100520101652_create_categories.rb