new

new() Class Public methods

next_migration_number

next_migration_number(number) Instance Public methods Determines the version number of the next migration.

new

new() Class Public methods

adapter_name

adapter_name() Instance Public methods Returns 'PostgreSQL' as adapter name for identification purposes.

rename_table

rename_table(table_name, new_name) Instance Public methods Renames a table. Example: rename_table('octopuses', 'octopi')

to_s

to_s() Instance Public methods Memoizes the value returned by calculate_ip and returns it for ActionDispatch::Request to use.

utc_offset

utc_offset() Instance Public methods Returns the offset value in seconds.

regular_update

regular_update(other_hash) Instance Public methods Alias for: update

number_with_precision

number_with_precision(number, options = {}) Instance Public methods Formats a number with the specified level of :precision (e.g., 112.32 has a precision of 2 if :significant is false, and 5 if :significant is true). You can customize the format in the options hash. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :precision - Sets the precision of the number (defaults to 3). :significant - If true, precision will be the # of significan

fragment_cache_key

fragment_cache_key(key) Instance Public methods Given a key (as described in expire_fragment), returns a key suitable for use in reading, writing, or expiring a cached fragment. All keys are prefixed with views/ and uses ActiveSupport::Cache.expand_cache_key for the expansion.