Sha256: 4743d173ca77a02b716c6d186dd0cd2bbdc1de66de043e4c4907fc1a97bba7ef

Contents?: true

Size: 397 Bytes

Versions: 8

Compression:

Stored size: 397 Bytes

Contents

# This migration comes from tb_blog (originally 20121113135812)
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

8 entries across 8 versions & 1 rubygems

Version Path
tb_blog-1.4.4 spec/dummy/db/migrate/20161020155444_add_nested_set_to_post_categories.tb_blog.rb
tb_blog-1.4.3 spec/dummy/db/migrate/20161020155444_add_nested_set_to_post_categories.tb_blog.rb
tb_blog-1.4.2 spec/dummy/db/migrate/20161020155444_add_nested_set_to_post_categories.tb_blog.rb
tb_blog-1.3.5 spec/dummy/db/migrate/20161020155444_add_nested_set_to_post_categories.tb_blog.rb
tb_blog-1.4.1 spec/dummy/db/migrate/20161020155444_add_nested_set_to_post_categories.tb_blog.rb
tb_blog-1.4.0 spec/dummy/db/migrate/20161020155444_add_nested_set_to_post_categories.tb_blog.rb
tb_blog-1.3.4 spec/dummy/db/migrate/20161020155444_add_nested_set_to_post_categories.tb_blog.rb
tb_blog-1.4.beta1 spec/dummy/db/migrate/20161020155444_add_nested_set_to_post_categories.tb_blog.rb