class ActiveRecordSpannerAdapter::ForeignKey

Attributes

columns[RW]
name[RW]
on_delete[RW]
on_update[RW]
ref_columns[RW]
ref_table[RW]
table_name[RW]

Public Class Methods

new(\ table_name, name, columns, ref_table, ref_columns, on_delete: nil, on_update: nil) click to toggle source
# File lib/activerecord_spanner_adapter/foreign_key.rb, line 12
def initialize \
    table_name,
    name,
    columns,
    ref_table,
    ref_columns,
    on_delete: nil,
    on_update: nil
  @table_name = table_name
  @name = name
  @columns = Array(columns)
  @ref_table = ref_table
  @ref_columns = Array(ref_columns)
  @on_delete = on_delete unless on_delete == "NO ACTION"
  @on_update = on_update unless on_update == "NO ACTION"
end