I have the following code in the model
class Thorserver < ActiveRecord::Base
add_index :Thorserver, [:ip, :mode], :unique => true
end
I see this error trying to insert to the table through the views
NoMethodError (undefined method `add_index' for #<Class:0x9a680494>):
app/models/thorserver.rb:2
app/controllers/testbeds_controller.rb:147:in `addresource'
The ruby version is ruby 1.8.6, rails version is Rails 2.3.8