diff options
Diffstat (limited to 'db/migrate/20130212120729_create_parking_stalls.rb')
-rw-r--r-- | db/migrate/20130212120729_create_parking_stalls.rb | 16 |
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 |