Closed raysrashmi closed 12 years ago
You may either set the default store:
NanoStore.shared_store = NanoStore.store(:memory) # memory only db
Or set store in a per model basis:
class User < NanoStore::Model
attribute :name
attribute :age
attribute :created_at
end
User.store = NanoStore.store(:memory) # memory only db
Hi,
i am not sure where i have to define my storage type in my app??
could you please help me ?
thanks in advance