From 29a441722c46f7ebffec83bf04c10d6cfd5ebe03 Mon Sep 17 00:00:00 2001 From: Sunandar Date: Thu, 26 Jan 2017 16:29:13 +0630 Subject: [PATCH] add new migration file --- db/migrate/20170126074122_add_adult_or_child_in_batches.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20170126074122_add_adult_or_child_in_batches.rb diff --git a/db/migrate/20170126074122_add_adult_or_child_in_batches.rb b/db/migrate/20170126074122_add_adult_or_child_in_batches.rb new file mode 100644 index 0000000..d129b7f --- /dev/null +++ b/db/migrate/20170126074122_add_adult_or_child_in_batches.rb @@ -0,0 +1,5 @@ +class AddAdultOrChildInBatches < ActiveRecord::Migration[5.0] + def change + add_column :batches, :adult_or_child, :string ,:default => "CHILD" + end +end