cleaned up accounts

This commit is contained in:
2016-09-28 22:12:55 -05:00
parent 33f3be1c79
commit 81c667da0f
11 changed files with 34 additions and 35 deletions

View File

@ -2,11 +2,10 @@
class CreateAccounts < ActiveRecord::Migration[5.0]
def change
create_table :accounts do |t|
t.string :username
t.string :password
t.string :home
t.string :site
t.string :username, null: false
t.string :password, null: false
t.string :home_folder, null: false
t.string :contact_email, null: false
t.timestamps
end
add_index :accounts, :username, unique: true