1 class CreateUsers < ActiveRecord::Migration
3 create_table :users do |t|
4 t.interger :affiliation_id, :null => true
5 t.string :matriculation_number, :null => true, :limit => 100
6 t.string :name, :null => true, :limit => 200
7 t.string :email, :null => true, :limit => 200
8 t.date :admission_date, :null => true
11 t.integer :lock_version, :null => false, :default => 0