From c9b6c014a7ff023107166f3fc8fcfe3e667a7adb Mon Sep 17 00:00:00 2001 From: hukl Date: Wed, 18 Mar 2009 22:26:46 +0100 Subject: add missing location column to events. removed summary column from summary - we try joins instead. we can always fallback if it turns out to be a stupid idea. added proper migrations --- db/migrate/20090318203913_add_location_to_event.rb | 9 +++++++++ .../20090318212438_remove_summary_column_from_occurrences.rb | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 db/migrate/20090318203913_add_location_to_event.rb create mode 100644 db/migrate/20090318212438_remove_summary_column_from_occurrences.rb (limited to 'db/migrate') diff --git a/db/migrate/20090318203913_add_location_to_event.rb b/db/migrate/20090318203913_add_location_to_event.rb new file mode 100644 index 0000000..5345781 --- /dev/null +++ b/db/migrate/20090318203913_add_location_to_event.rb @@ -0,0 +1,9 @@ +class AddLocationToEvent < ActiveRecord::Migration + def self.up + add_column :events, :location, :text + end + + def self.down + remove_column :events, :location + end +end diff --git a/db/migrate/20090318212438_remove_summary_column_from_occurrences.rb b/db/migrate/20090318212438_remove_summary_column_from_occurrences.rb new file mode 100644 index 0000000..7110987 --- /dev/null +++ b/db/migrate/20090318212438_remove_summary_column_from_occurrences.rb @@ -0,0 +1,9 @@ +class RemoveSummaryColumnFromOccurrences < ActiveRecord::Migration + def self.up + remove_column :occurrences, :summary + end + + def self.down + add_column :occurrences, :summary, :string + end +end -- cgit v1.3