scaffold accounts

This commit is contained in:
2016-08-27 21:40:21 -05:00
parent 8ff9ca02f8
commit 3d5743b92f
16 changed files with 289 additions and 1 deletions

View File

@ -0,0 +1,13 @@
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.timestamps
end
add_index :accounts, :username, unique: true
end
end

View File

@ -10,6 +10,16 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 0) do
ActiveRecord::Schema.define(version: 20160828022337) 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.index ["username"], name: "index_accounts_on_username", unique: true, using: :btree
end
end