change ref_class to ref_model
This commit is contained in:
@@ -21,13 +21,13 @@ class CreateAwardsTable extends Migration
|
||||
|
||||
# ref fields are expenses tied to some model object
|
||||
# EG, the airports has an internal expense for gate costs
|
||||
$table->string('ref_class')->nullable();
|
||||
$table->text('ref_class_params')->nullable();
|
||||
#$table->string('ref_class_id', 36)->nullable();
|
||||
$table->string('ref_model')->nullable();
|
||||
$table->text('ref_model_params')->nullable();
|
||||
#$table->string('ref_model_id', 36)->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['ref_class']);
|
||||
$table->index(['ref_model']);
|
||||
});
|
||||
|
||||
Schema::create('user_awards', function (Blueprint $table) {
|
||||
|
||||
@@ -21,12 +21,12 @@ class CreateExpensesTable extends Migration
|
||||
|
||||
# ref fields are expenses tied to some model object
|
||||
# EG, the airports has an internal expense for gate costs
|
||||
$table->string('ref_class')->nullable();
|
||||
$table->string('ref_class_id', 36)->nullable();
|
||||
$table->string('ref_model')->nullable();
|
||||
$table->string('ref_model_id', 36)->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['ref_class', 'ref_class_id']);
|
||||
$table->index(['ref_model', 'ref_model_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -22,15 +22,15 @@ class CreateJournalTransactionsTable extends Migration
|
||||
$table->char('currency', 5);
|
||||
$table->text('memo')->nullable();
|
||||
$table->string('tags')->nullable();
|
||||
$table->string('ref_class', 50)->nullable();
|
||||
$table->string('ref_class_id', 36)->nullable();
|
||||
$table->string('ref_model', 50)->nullable();
|
||||
$table->string('ref_model_id', 36)->nullable();
|
||||
$table->timestamps();
|
||||
$table->date('post_date');
|
||||
|
||||
$table->primary('id');
|
||||
$table->index('journal_id');
|
||||
$table->index('transaction_group');
|
||||
$table->index(['ref_class', 'ref_class_id']);
|
||||
$table->index(['ref_model', 'ref_model_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user