OSDN Git Service

t#29312:any update
[pettanr/pettanr.git] / db / migrate / 20120815043236_rm_default_ls_on_artist.rb
diff --git a/db/migrate/20120815043236_rm_default_ls_on_artist.rb b/db/migrate/20120815043236_rm_default_ls_on_artist.rb
new file mode 100644 (file)
index 0000000..9b01e60
--- /dev/null
@@ -0,0 +1,9 @@
+class RmDefaultLsOnArtist < ActiveRecord::Migration
+  def up
+    remove_column :artists, :default_license_id
+  end
+
+  def down
+    remove_column :artists, :default_license_id, :integer , :null => false, :default => 0
+  end
+end