summaryrefslogtreecommitdiff
path: root/db/migrate/20111121152220_create_conferences.rb
blob: fe32ee89c31406754a7350bb50460aa9f746c81c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class CreateConferences < ActiveRecord::Migration
  def self.up
    create_table :conferences do |t|
      t.string :name
      t.datetime :start
      t.datetime :end
      t.text :description
      t.string :pin
      t.text :state
      t.boolean :open_for_anybody
      t.string :conferenceable_type
      t.integer :conferenceable_id
      t.timestamps
    end
  end

  def self.down
    drop_table :conferences
  end
end