summaryrefslogtreecommitdiff
path: root/db/migrate/20090316195143_create_occurrences.rb
blob: e397e3ca6c56d0086d570030cb50b21171d79b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class CreateOccurrences < ActiveRecord::Migration[4.2]
  def self.up
    create_table :occurrences do |t|
      t.string :summary
      t.datetime :start_time
      t.datetime :end_time
      t.integer :node_id
      t.integer :event_id

      t.timestamps
    end
  end

  def self.down
    drop_table :occurrences
  end
end