Change video's director column to a string
[cs356-p2-videostore.git] / db / migrate / 012_rentables_director_int_to_str.rb
diff --git a/db/migrate/012_rentables_director_int_to_str.rb b/db/migrate/012_rentables_director_int_to_str.rb
new file mode 100644 (file)
index 0000000..9498c14
--- /dev/null
@@ -0,0 +1,9 @@
+class RentablesDirectorIntToStr < ActiveRecord::Migration
+  def self.up
+    change_column :rentables, :director, :string
+  end
+
+  def self.down
+    change_column :rentables, :director, :integer
+  end
+end