Flowdock
method

action_sql

Importance_0
v4.2.1 - Show latest stable - 0 notes - Class: SchemaCreation
action_sql(action, dependency) private

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_creation.rb, line 106
          def action_sql(action, dependency)
            case dependency
            when :nullify then "ON #{action} SET NULL"
            when :cascade  then "ON #{action} CASCADE"
            when :restrict then "ON #{action} RESTRICT"
            else
              raise ArgumentError,                 '#{dependency}' is not supported for :on_update or :on_delete.                Supported values are: :nullify, :cascade, :restrict.strip_heredoc
            end
          end
Register or log in to add new notes.