aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/migrate/20140626081657_add_in_out_to_timetable_date.ninoxe_engine.rb6
-rw-r--r--db/migrate/20140626081658_set_in_out_to_timetable_date.ninoxe_engine.rb9
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