add_reference

add_reference(table_name, ref_name, options = {}) Instance Public methods Adds a reference. Optionally adds a type column, if :polymorphic option is provided. add_reference and add_belongs_to are acceptable. Create a user_id column add_reference(:products, :user) Create a supplier_id and supplier_type columns add_belongs_to(:products, :supplier, polymorphic: true) Create a supplier_id, supplier_type columns and appropriate index add_reference(:products, :supplier, polymorphic: tr

finished_documents

finished_documents(documents) Instance Public methods

mktmpdir

mktmpdir(prefix_suffix=nil, *rest) Class Public methods ::mktmpdir creates a temporary directory. The directory is created with 0700 permission. Application should not change the permission to make the temporary directory accesible from other users. The prefix and suffix of the name of the directory is specified by the optional first argument, prefix_suffix. If it is not specified or nil, âdâ is used as the prefix and no suffix is used. If it is a string, it is used as the prefi

sort_descending

sort_descending() Instance Public methods

parse

parse() Instance Public methods

strict_decode64

strict_decode64(str) Instance Public methods Returns the Base64-decoded version of str. This method complies with RFC 4648. ArgumentError is raised if str is incorrectly padded or contains non-alphabet characters. Note that CR or LF are also rejected.

to_feed

to_feed(rss, item) Instance Public methods

level

ancillarydata.level => integer Instance Public methods returns the cmsg level as an integer. p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "").level #=> 41

xhtml=

xhtml=(content) Instance Public methods

rename_column_indexes

rename_column_indexes(table_name, column_name, new_column_name) Instance Protected methods