This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed DiveStart, SampleStart and Date fields in db to correct types…
…..also changed them to time_select and date_select in view. Added quick link_to references
- Loading branch information
1 parent
b2dd18c
commit 01e8c78
Showing
7 changed files
with
59 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
class ChangeTimeFields < ActiveRecord::Migration | ||
def up | ||
remove_column :entrysamples, :divbegh | ||
remove_column :entrysamples, :divbegm | ||
remove_column :entrysamples, :divendh | ||
remove_column :entrysamples, :divendm | ||
remove_column :entrysamples, :sampbegh | ||
remove_column :entrysamples, :sampbegm | ||
remove_column :entrysamples, :sampendh | ||
remove_column :entrysamples, :sampendm | ||
|
||
add_column :entrysamples, :dive_start_time, :time | ||
add_column :entrysamples, :dive_end_time, :time | ||
add_column :entrysamples, :sample_start_time, :time | ||
add_column :entrysamples, :sample_end_time, :time | ||
|
||
|
||
end | ||
|
||
def down | ||
|
||
|
||
remove_column :entrysamples, :sample_end_time | ||
remove_column :entrysamples, :sample_start_time | ||
remove_column :entrysamples, :dive_end_time | ||
remove_column :entrysamples, :dive_start_time | ||
|
||
add_column :entrysamples, :sampendm | ||
add_column :entrysamples, :sampendh | ||
add_column :entrysamples, :sampbegm | ||
add_column :entrysamples, :sampbegh | ||
add_column :entrysamples, :divendm | ||
add_column :entrysamples, :divendh | ||
add_column :entrysamples, :divebegm | ||
add_column :entrysamples, :divebegh | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters