diff options
Diffstat (limited to 'db')
| -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 | ||
