diff options
-rw-r--r-- | db/migrate/20130113072126_create_gateways.rb | 16 |
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 |