summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20090318203913_add_location_to_event.rb9
-rw-r--r--db/migrate/20090318212438_remove_summary_column_from_occurrences.rb9
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 @@
1class 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
9end
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 @@
1class 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
9end