summaryrefslogtreecommitdiff
path: root/db/migrate/20130212120729_create_parking_stalls.rb
blob: 7620942778d713116798937857a37c258b83bbe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class CreateParkingStalls < ActiveRecord::Migration
  def self.up
    create_table :parking_stalls do |t|
      t.string :name
      t.string :lot
      t.integer :parking_stallable_id
      t.string :parking_stallable_type
      t.string :comment
      t.timestamps
    end
  end

  def self.down
    drop_table :parking_stalls
  end
end