Finished chapter 11
[depot.git] / db / migrate / 20090311105014_create_users.rb
diff --git a/db/migrate/20090311105014_create_users.rb b/db/migrate/20090311105014_create_users.rb
new file mode 100644 (file)
index 0000000..400d8da
--- /dev/null
@@ -0,0 +1,15 @@
+class CreateUsers < ActiveRecord::Migration
+  def self.up
+    create_table :users do |t|
+      t.string :name
+      t.string :hashed_password
+      t.string :salt
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :users
+  end
+end