summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-12 13:07:05 +0000
committerPeter Kozak <spag@golwen.net>2013-02-12 13:07:05 +0000
commit902447a1baf7e9d8385c269a601361c8c3f2f14b (patch)
tree274f7e215471aa81d8916d343cc0c65f1de33217 /db
parent1ca26f823692d1cccb220a07ac8e7841c14dced3 (diff)
parking_stall added
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130212120729_create_parking_stalls.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20130212120729_create_parking_stalls.rb b/db/migrate/20130212120729_create_parking_stalls.rb
new file mode 100644
index 0000000..7620942
--- /dev/null
+++ b/db/migrate/20130212120729_create_parking_stalls.rb
@@ -0,0 +1,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