Sha256: 76c90a0136c69869474d59adcfc563532b224b2d51d3edae726eccef0b0b477b

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.string :title

      t.integer :parent_id
      t.integer :lft
      t.integer :rgt
      t.integer :depth, :default => 0

      t.timestamps
    end
  end

  def self.down
    drop_table :categories
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
puffer-0.0.23 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.0.22 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.0.21 spec/dummy/db/migrate/20100930132726_create_categories.rb