summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-01-13 16:40:43 +0000
committerPeter Kozak <spag@golwen.net>2013-01-13 16:40:43 +0000
commit9c3f6bfe2b5ae7d1dc05de432ce4fe202940d84d (patch)
tree9cb8189c70465eba14c8e84ec8f23fff9c1adbed /db/migrate
parent7cfb1fd6beabf26ffe7726e7a04c0bdf37bc044a (diff)
gateway model migration
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20130113072126_create_gateways.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20130113072126_create_gateways.rb b/db/migrate/20130113072126_create_gateways.rb
new file mode 100644
index 0000000..e6c3f77
--- /dev/null
+++ b/db/migrate/20130113072126_create_gateways.rb
@@ -0,0 +1,16 @@
+class CreateGateways < ActiveRecord::Migration
+ def self.up
+ create_table :gateways do |t|
+ t.string :name
+ t.string :technology
+ t.boolean :inbound
+ t.boolean :outbound
+ t.string :description
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :gateways
+ end
+end