<commit_before>var dbm = require('db-migrate');
var type = dbm.dataType;

exports.up = function(db, callback) {
  db.createTable('bank_transactions', { 
		id: { type: 'int', primaryKey: true, autoIncrement: true },
    deposit: { type: 'boolean', notNull: true },
    currency: { type: 'string', notNull: true },
    cashAmount: { type: 'decimal', notNull: true },
    accountId: { type: 'int', notNull: true },
    rippleTxId: { type: 'int'},
    createdAt: { type: 'datetime', notNull: true },
    updatedAt: { type: 'datetime' }
  }, callback);<commit_msg>[FEATURE] Change accountId to externalAccountId in external transactions migration<commit_after>var dbm = require('db-migrate');
var type = dbm.dataType;

exports.up = function(db, callback) {
  db.createTable('external_transactions', { 
		id: { type: 'int', primaryKey: true, autoIncrement: true },
    deposit: { type: 'boolean', notNull: true },
    currency: { type: 'string', notNull: true },
    cashAmount: { type: 'decimal', notNull: true },
    externalAccountId: { type: 'int', notNull: true },
    rippleTxId: { type: 'int'},
    createdAt: { type: 'datetime', notNull: true },
    updatedAt: { type: 'datetime' }
  }, callback);
{'fraction_non_alphanumeric': 0.1651376146788991, 'fraction_numerical': 0.0, 'mean_word_length': 4.286343612334802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '368055', 'n_tokens_mistral': 391, 'n_tokens_neox': 388, 'n_words': 105}