lk | add time_spent field to bikes

This commit is contained in:
Louis Knapp
2017-07-13 18:44:58 -05:00
parent fa2c2ede08
commit d49f6030ed
6 changed files with 25 additions and 7 deletions
@@ -0,0 +1,5 @@
class AddTimeSpentToBikes < ActiveRecord::Migration
def change
add_column :bikes, :time_spent, :int
end
end
+2 -1
View File
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160731020658) do
ActiveRecord::Schema.define(version: 20170713233459) 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: 20160731020658) do
t.datetime "date_sold"
t.integer "bike_index_id"
t.datetime "fixed_at"
t.integer "time_spent"
end
create_table "clients", force: :cascade do |t|