mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
Louis | Adds clients model & views to db
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user