Sha256: 037698d991c2067f8a0be908c5c450206eacc8023040edc4e21566b5cea9f22a

Contents?: true

Size: 276 Bytes

Versions: 12

Compression:

Stored size: 276 Bytes

Contents

class SwitchToNestedSetsInsteadOfPositionPages < ActiveRecord::Migration
  
  def change
    remove_column :spina_pages, :position
    add_column :spina_pages, :lft, :integer
    add_column :spina_pages, :rgt, :integer
    add_column :spina_pages, :depth, :integer
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spina-0.6.22 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.21 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.20 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.19 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.18 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.17 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.16 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.15 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.14 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.13 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.12 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb
spina-0.6.11 db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb