Fixing search form for bikes updated to netzke 8.4

Updated Netzke 8.4, better search styling, case insensitive search, can search associations
Fixed mistake where bikes.condition_id was a string… durrrrrr needs to be integer
This commit is contained in:
Jason Denney
2013-08-15 22:05:29 -04:00
parent cf922be1b1
commit 4d7634605c
3 changed files with 21 additions and 6 deletions
@@ -0,0 +1,15 @@
class BikeConditionIdToInt < ActiveRecord::Migration
def up
#for Postgres
connection.execute(%q{
alter table bikes
alter column bike_condition_id
type integer using cast(bike_condition_id as integer)
})
end
def down
#you really don't want to go back
change_column :bikes, :bike_condition_id, :string
end
end