OSDN Git Service

fix typo
[mint/mint-server.git] / db / migrate / 20091215064720_create_users.rb
index 805ba7b..6fcb8ab 100644 (file)
@@ -1,10 +1,14 @@
 class CreateUsers < ActiveRecord::Migration
   def self.up
     create_table :users do |t|
-      t.string :name
-      t.string :email
+      t.integer :affiliation_id, :null => true
+      t.string :matriculation_number, :null => true, :limit => 100
+      t.string :name,  :null => true, :limit => 200
+      t.string :email, :null => true, :limit => 200
+      t.date :admission_date, :null => true
 
       t.timestamps
+      t.integer :lock_version, :null => false, :default => 0
     end
   end