```ruby
class AddTypeToMiniapp < ActiveRecord::Migration
  def change
  		
		MiniApp.where(:name=>app.name).delete_all
		mini_app = MiniappStudy::Question.new(:name=>"study", :order_number=>90)
		mini_app.save!
		
  end
end
```

Fix app not found error
user
```ruby
class AddTypeToMiniapp < ActiveRecord::Migration
  def change
  		
		MiniApp.where(:name=>"study").delete_all
		mini_app = MiniappStudy::Question.new(:name=>"study", :order_number=>90)
		mini_app.save!
		
  end
end
```
assistant