summaryrefslogtreecommitdiff
path: root/db/migrate/20111006074623_create_users.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20111006074623_create_users.rb')
-rw-r--r--db/migrate/20111006074623_create_users.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/db/migrate/20111006074623_create_users.rb b/db/migrate/20111006074623_create_users.rb
new file mode 100644
index 0000000..dab37c5
--- /dev/null
+++ b/db/migrate/20111006074623_create_users.rb
@@ -0,0 +1,20 @@
+class CreateUsers < ActiveRecord::Migration
+ def self.up
+ create_table :users do |t|
+ t.string :user_name
+ t.string :email
+ t.string :password_digest
+ t.string :first_name
+ t.string :middle_name
+ t.string :last_name
+ t.boolean :male
+ t.string :gemeinschaft_unique_id
+ t.string :state
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :users
+ end
+end