Update workouts date column type
This commit is contained in:
parent
6ce043edbb
commit
daf34100ec
4 changed files with 13 additions and 4 deletions
9
db/migrate/20130810061810_change_type_in_workouts.rb
Normal file
9
db/migrate/20130810061810_change_type_in_workouts.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class ChangeTypeInWorkouts < ActiveRecord::Migration
|
||||
def self.up
|
||||
change_column :workouts, :date, :date
|
||||
end
|
||||
|
||||
def self.down
|
||||
change_column :workouts, :date, :datetime
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue