diff options
Diffstat (limited to 'db/migrate/20090316195143_create_occurrences.rb')
| -rw-r--r-- | db/migrate/20090316195143_create_occurrences.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20090316195143_create_occurrences.rb b/db/migrate/20090316195143_create_occurrences.rb new file mode 100644 index 00000000..e0df07b5 --- /dev/null +++ b/db/migrate/20090316195143_create_occurrences.rb | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | class CreateOccurrences < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | create_table :occurrences do |t| | ||
| 4 | t.string :summary | ||
| 5 | t.datetime :start_time | ||
| 6 | t.datetime :end_time | ||
| 7 | t.integer :node_id | ||
| 8 | t.integer :event_id | ||
| 9 | |||
| 10 | t.timestamps | ||
| 11 | end | ||
| 12 | end | ||
| 13 | |||
| 14 | def self.down | ||
| 15 | drop_table :occurrences | ||
| 16 | end | ||
| 17 | end | ||
