Sha256: ed8fce7c481fadce71d36231426bb86b1ca1b6e3f49bd15305cc8c21b5849e53
Contents?: true
Size: 373 Bytes
Versions: 2
Compression:
Stored size: 373 Bytes
Contents
class AddFieldsToUser < ActiveRecord::Migration def change add_column :users, :first_name, :string add_column :users, :last_name, :string add_column :users, :username, :string add_column :users, :is_administrator, :boolean, :default => false add_index :users, :openstax_uid, :unique => true add_index :users, :username, :unique => true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openstax_connect-0.0.2 | db/migrate/20130909215452_add_fields_to_user.rb |
openstax_connect-0.0.1 | db/migrate/20130909215452_add_fields_to_user.rb |