Louis | Adds clients model & views to db

This commit is contained in:
Loos
2014-09-16 20:50:58 -04:00
parent 3c8962fa49
commit d3403e18cd
17 changed files with 237 additions and 21 deletions
@@ -0,0 +1,19 @@
class CreateClients < ActiveRecord::Migration
def change
create_table :clients do |t|
t.string :first_name
t.string :last_name
t.date :application_date
t.string :gender
t.integer :age
t.integer :weight
t.boolean :helmet
t.boolean :lock
t.string :agency
t.date :completion_date
t.timestamps
end
end
end
+16 -1
View File
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140814020954) do
ActiveRecord::Schema.define(version: 20140917003003) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -37,6 +37,21 @@ ActiveRecord::Schema.define(version: 20140814020954) do
t.text "mechanic"
end
create_table "clients", force: true do |t|
t.string "first_name"
t.string "last_name"
t.date "application_date"
t.string "gender"
t.integer "age"
t.integer "weight"
t.boolean "helmet"
t.boolean "lock"
t.string "agency"
t.date "completion_date"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "users", force: true do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false