For a Cequel record/schema, the name is generated by rake cequel:migrate
. But how do we assign a name in the model definition?
I tried the following but it did not work (Cequel 1.7.0):
class MyInfo
include Cequel::Record
key :name, :text
column :info, :text
self.table_name = "my_info_2" #<<< need to set a custom name
end
The updated cequel version 1.9.1 has the custom naming enabled. It is also confirmed by the author on GitHub/Cequel: