We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#encoding: utf-8 class Grade < ActiveRecord::Base acts_as_nested_set attr_accessible :name, :parent_id has_many :subjects scope :stages, where("parent_id is null") scope :list, where("parent_id <> ''") #scope :excluding_ids, lambda { |ids| where(['id NOT IN (?)', ids]) if ids.any?} end
This my seeds
puts "start import " stage = Grade.create :name => "grade" ["grade1", "grade2"].each do |name| grade = Grade.create :name => name, :parent_id => stage.id end
When I run rake db:seed, it shows
rake db:seed
rake aborted! Impossible move, target node cannot be inside moved tree.
The text was updated successfully, but these errors were encountered:
I just type the wrong column: rgt -> rft
Sorry, something went wrong.
For me I had corrupted data, so I did this: Model.rebuild!
Model.rebuild!
No branches or pull requests
This my seeds
When I run
rake db:seed
, it showsrake aborted! Impossible move, target node cannot be inside moved tree.
The text was updated successfully, but these errors were encountered: