Sha256: b76cfe3c212e2b39c86ee9814dd37134bd53fdb3476a17d0aac628436564db35

Contents?: true

Size: 333 Bytes

Versions: 12

Compression:

Stored size: 333 Bytes

Contents

class AddNestedSetToPostCategories < ActiveRecord::Migration
  def up
    change_table :spud_post_categories do |t|
      t.integer :lft
      t.integer :rgt
      t.integer :depth
    end
  end

  def down
    change_table :spud_post_categories do |t|
      t.remove :lft
      t.remove :rgt
      t.remove :depth
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tb_blog-1.4.4 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.4.3 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.4.2 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.3.5 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.4.1 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.4.0 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.3.4 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.4.beta1 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.3.3 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.3.2 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.3.1 db/migrate/20121113135812_add_nested_set_to_post_categories.rb
tb_blog-1.3.0 db/migrate/20121113135812_add_nested_set_to_post_categories.rb