summaryrefslogtreecommitdiff
path: root/db/migrate/20111012121851_create_manufacturers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20111012121851_create_manufacturers.rb')
-rw-r--r--db/migrate/20111012121851_create_manufacturers.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20111012121851_create_manufacturers.rb b/db/migrate/20111012121851_create_manufacturers.rb
new file mode 100644
index 0000000..0f8b132
--- /dev/null
+++ b/db/migrate/20111012121851_create_manufacturers.rb
@@ -0,0 +1,15 @@
+class CreateManufacturers < ActiveRecord::Migration
+ def self.up
+ create_table :manufacturers do |t|
+ t.string :name
+ t.string :ieee_name
+ t.string :homepage_url
+ t.string :state
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :manufacturers
+ end
+end