cleaned up accounts
This commit is contained in:
@ -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
|
||||
|
14
db/schema.rb
14
db/schema.rb
@ -10,15 +10,15 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160828022337) do
|
||||
ActiveRecord::Schema.define(version: 20160929022453) do
|
||||
|
||||
create_table "accounts", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
||||
t.string "username"
|
||||
t.string "password"
|
||||
t.string "home"
|
||||
t.string "site"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "username", null: false
|
||||
t.string "password", null: false
|
||||
t.string "home_folder"
|
||||
t.string "contact_email", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["username"], name: "index_accounts_on_username", unique: true, using: :btree
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user