From 898337a07e32b5d2a43a2bfc720040d974562479 Mon Sep 17 00:00:00 2001 From: Louis Knapp Date: Sun, 17 Jul 2016 12:25:53 -0500 Subject: [PATCH] lk | adds fixed_at column to bikes --- db/migrate/20160717165815_add_fixed_at_to_bikes.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20160717165815_add_fixed_at_to_bikes.rb diff --git a/db/migrate/20160717165815_add_fixed_at_to_bikes.rb b/db/migrate/20160717165815_add_fixed_at_to_bikes.rb new file mode 100644 index 0000000..816f719 --- /dev/null +++ b/db/migrate/20160717165815_add_fixed_at_to_bikes.rb @@ -0,0 +1,5 @@ +class AddFixedAtToBikes < ActiveRecord::Migration + def change + add_column :bikes, :fixed_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 0e34d3f..93042b8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20151230021120) do +ActiveRecord::Schema.define(version: 20160717165815) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -46,6 +46,7 @@ ActiveRecord::Schema.define(version: 20151230021120) do t.text "mechanic" t.date "date_sold" t.integer "bike_index_id" + t.datetime "fixed_at" end create_table "clients", force: :cascade do |t|