Sha256: 18a30b6327a19ccdb272f3c2a0a4cfbce25ccff0e69e2a7804c3e19e7a823c55
Contents?: true
Size: 941 Bytes
Versions: 4
Compression:
Stored size: 941 Bytes
Contents
# Copyright 2020 Google LLC # # Use of this source code is governed by an MIT-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/MIT. module ActiveRecordSpannerAdapter class ForeignKey attr_accessor :table_schema, :table_name, :name, :columns, :ref_schema, :ref_table, :ref_columns, :on_delete, :on_update def initialize \ table_name, name, columns, ref_table, ref_columns, on_delete: nil, on_update: nil, table_schema: "", ref_schema: "" @table_schema = table_schema @table_name = table_name @name = name @columns = Array(columns) @ref_schema = ref_schema @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 end end
Version data entries
4 entries across 4 versions & 1 rubygems