Sha256: 534cb09add1bd85694233372ca375efe78861a6ec8a3a8b62f6ef9a36e25f897

Contents?: true

Size: 341 Bytes

Versions: 10

Compression:

Stored size: 341 Bytes

Contents

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

      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

10 entries across 10 versions & 1 rubygems

Version Path
puffer-0.1.1 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.1.0 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.0.32 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.0.31 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.0.30 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.0.29 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.0.28 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.0.26 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.0.25 spec/dummy/db/migrate/20100930132726_create_categories.rb
puffer-0.0.24 spec/dummy/db/migrate/20100930132726_create_categories.rb