OSDN Git Service

build pictures
[pettanr/pettanr.git] / db / migrate / 20120713230519_add_credit_data.rb
diff --git a/db/migrate/20120713230519_add_credit_data.rb b/db/migrate/20120713230519_add_credit_data.rb
new file mode 100644 (file)
index 0000000..f382197
--- /dev/null
@@ -0,0 +1,11 @@
+class AddCreditData < ActiveRecord::Migration
+  def up
+    add_column :resource_pictures, :classname, :string, :null => false, :limit => 50, :default => 'StandardLicense'
+    add_column :pictures, :classname, :string, :null => false, :limit => 50, :default => 'StandardLicense'
+  end
+
+  def down
+    remove__column :resource_pictures, :classname
+    remove__column :pictures, :classname
+  end
+end