method

define_column_methods

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: ColumnMethods
define_column_methods(*column_types) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 224
                def define_column_methods(*column_types) # :nodoc:
          column_types.each do |column_type|
            module_eval               def #{column_type}(*names, **options)                raise ArgumentError, "Missing column name(s) for #{column_type}" if names.empty?                names.each { |name| column(name, :#{column_type}, options) }              end, __FILE__, __LINE__ + 1
          end
        end
Register or log in to add new notes.