diff options
| author | hukl <contact@smyck.org> | 2009-03-18 22:26:46 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-18 22:26:46 +0100 |
| commit | c9b6c014a7ff023107166f3fc8fcfe3e667a7adb (patch) | |
| tree | e6189791e25a14e27247358545000c2041c7b45a /db/migrate | |
| parent | 8228443e37016c5c3686b6352c96f8270cb4a245 (diff) | |
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
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20090318203913_add_location_to_event.rb | 9 | ||||
| -rw-r--r-- | db/migrate/20090318212438_remove_summary_column_from_occurrences.rb | 9 |
2 files changed, 18 insertions, 0 deletions
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 @@ | |||
| 1 | class AddLocationToEvent < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | add_column :events, :location, :text | ||
| 4 | end | ||
| 5 | |||
| 6 | def self.down | ||
| 7 | remove_column :events, :location | ||
| 8 | end | ||
| 9 | 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 @@ | |||
| 1 | class RemoveSummaryColumnFromOccurrences < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | remove_column :occurrences, :summary | ||
| 4 | end | ||
| 5 | |||
| 6 | def self.down | ||
| 7 | add_column :occurrences, :summary, :string | ||
| 8 | end | ||
| 9 | end | ||
