def generate_belongs_to_foreign_key_name(assoc)
      source = assoc.source_table[0..7]
      column = assoc.foreign_key_column[0..7]
      destination = assoc.destination_table[0..7]
      "fk_#{source}_#{column}_#{destination}_#{SecureRandom.hex}"
    end
def generate_belongs_to_foreign_key_name(assoc)
      source = assoc.source_table[0..7]
      column = assoc.foreign_key_column[0..7]
      destination = assoc.destination_table[0..7]
      "fk_
    end
def generate_belongs_to_foreign_key_name ( assoc ) source = assoc . source_table [ 0 .. 7 ] column = assoc . foreign_key_column [ 0 .. 7 ] destination = assoc . destination_table [ 0 .. 7 ] "fk_#{source}_#{column}_#{destination}_#{SecureRandom.hex}" end
Limited to 64 characters
Limited to 64 characters