Lots of stuff, I got too tired to keep perfect revision history
[cs356-p2-videostore.git] / db / migrate / 033_create_bonus_policies.rb
diff --git a/db/migrate/033_create_bonus_policies.rb b/db/migrate/033_create_bonus_policies.rb
new file mode 100644 (file)
index 0000000..6845ca3
--- /dev/null
@@ -0,0 +1,13 @@
+class CreateBonusPolicies < ActiveRecord::Migration
+  def self.up
+    create_table :bonus_policies do |t|
+      t.column :number, :integer
+      t.column :bonus_type, :string
+      t.column :days, :integer
+    end
+  end
+
+  def self.down
+    drop_table :bonus_policies
+  end
+end