diff options
| author | Marc Florisson | 2014-06-27 09:11:51 +0200 |
|---|---|---|
| committer | Marc Florisson | 2014-06-27 09:11:51 +0200 |
| commit | e99a4e8f38095897373507630a4b424d22289bd2 (patch) | |
| tree | 2fc33f85c566391d40aa0e6f218c5cf0f8428d12 | |
| parent | 7c6a4015d53a4a4b9e041d30856d766843c7ef59 (diff) | |
| download | chouette-core-e99a4e8f38095897373507630a4b424d22289bd2.tar.bz2 | |
add 2 migrations coming from ninoxe
| -rw-r--r-- | db/migrate/20140626081657_add_in_out_to_timetable_date.ninoxe_engine.rb | 6 | ||||
| -rw-r--r-- | db/migrate/20140626081658_set_in_out_to_timetable_date.ninoxe_engine.rb | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20140626081657_add_in_out_to_timetable_date.ninoxe_engine.rb b/db/migrate/20140626081657_add_in_out_to_timetable_date.ninoxe_engine.rb new file mode 100644 index 000000000..81f12e64d --- /dev/null +++ b/db/migrate/20140626081657_add_in_out_to_timetable_date.ninoxe_engine.rb @@ -0,0 +1,6 @@ +# This migration comes from ninoxe_engine (originally 20140625143030) +class AddInOutToTimetableDate < ActiveRecord::Migration + def change + add_column "time_table_dates", "in_out", "boolean" + end +end diff --git a/db/migrate/20140626081658_set_in_out_to_timetable_date.ninoxe_engine.rb b/db/migrate/20140626081658_set_in_out_to_timetable_date.ninoxe_engine.rb new file mode 100644 index 000000000..724154466 --- /dev/null +++ b/db/migrate/20140626081658_set_in_out_to_timetable_date.ninoxe_engine.rb @@ -0,0 +1,9 @@ +# This migration comes from ninoxe_engine (originally 20140626054725) +class SetInOutToTimetableDate < ActiveRecord::Migration + def up + Chouette::TimeTableDate.update_all( :in_out => true) + end + + def down + end +end |
