OSDN Git Service

merge v06sheet
[pettanr/pettanr.git] / db / migrate / 20130906044356_create_scrolls.rb
diff --git a/db/migrate/20130906044356_create_scrolls.rb b/db/migrate/20130906044356_create_scrolls.rb
new file mode 100644 (file)
index 0000000..acce49d
--- /dev/null
@@ -0,0 +1,12 @@
+class CreateScrolls < ActiveRecord::Migration
+  def change
+    create_table :scrolls do |t|
+      t.string :title, :null => false, :limit => 100
+      t.integer :visible, :null => false, :default => 0
+      t.text :description
+      t.integer :author_id, :null => false
+
+      t.timestamps
+    end
+  end
+end