-
```
当 QDB_ActiveRecord_Meta 调用 ActiveRecord 继承类的 __define()
静态方法后,
会完成元信息对象的初始化。
初始化完成后应该调用 ActiveRecord 继承类的 __after_meta_init()
方法,并将
QDB_ActiveRecord_Meta 对象实例作为参数传入。
利用 __after_meta_init() 方法,…
-
[See this exception on Errbit](http://errbit.opensuse.org/apps/5620ca2bdc71fa00b1000000/problems/639ea74584bf460521649a9d)
# Mysql2::Error: Duplicate entry 'Package-345246-56888' for key '…
-
With reform often use populators for creation of nested objects with one form.
It works well but sometimes we need destroy nested objects too.
For example:
```ruby
class User < ActiveRecord::Base
…
-
If I use batchGetItem it asks for the key. However, I cannot know this key in advance, for example the key is the id of the table. So how should I handle this problem?
Pls help me, Thank you!
cc @an…
-
Maybe I'm a bit annoying but here is issue following association can't be simply deleted without instatiating or iterating through every record
class Content < ActiveRecord::Base
belongs_to :com…
-
I have a owner model:
```
class Person < ActiveRecord::Base
has_many_polymorphs :things, :from => [ :books, :cds, :dvds ], :through => :person_things
end
```
a relationship model:
```
class Perso…
-
Hello!
First of all thank you for the plugin.
I followed the steps for the plugin installation and have an issue with the db:migrate_plugins task.
Environment:
`Environment:
Redmine ver…
yelha updated
7 years ago
-
Hallo,
I have not much informations, but maybe you see something I miss.
We have a transaction where we save 7 objects in different tables.
On our staging/production system sometimes the transa…
Piioo updated
3 months ago
-
```ruby
class Post < ActiveRecord::Base
enum status: %i[draft published]
end
```
The error we get is:
```
Undeclared attribute type for enum 'status'. Enums must be backed by a database c…
-
Hi All,
I am using below two gem for our Sinatra Application.
```
gem 'sinatra' # version (1.4.7)
gem 'sinatra-activerecord' # version(2.0.9)
```
We are feeling that active record query cachi…