Flowdock
method

add_to

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ReferenceDefinition
add_to(table) 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 170
      def add_to(table)
        columns.each do |name, type, options|
          table.column(name, type, **options)
        end

        if index
          table.index(column_names, **index_options(table.name))
        end

        if foreign_key
          table.foreign_key(foreign_table_name, **foreign_key_options)
        end
      end
Register or log in to add new notes.