edit api
This commit is contained in:
@@ -4,11 +4,9 @@ class CreateClients < ActiveRecord::Migration[5.0]
|
||||
t.string :name,:null => false
|
||||
t.string :email
|
||||
t.string :phone
|
||||
t.string :address
|
||||
t.string :product_type
|
||||
t.string :address
|
||||
t.string :secrect_key
|
||||
t.timestamps null: false
|
||||
t.timestamps
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
19
db/schema.rb
19
db/schema.rb
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20170203091136) do
|
||||
ActiveRecord::Schema.define(version: 20170208065316) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -51,14 +51,13 @@ ActiveRecord::Schema.define(version: 20170203091136) do
|
||||
end
|
||||
|
||||
create_table "clients", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "name", null: false
|
||||
t.string "email"
|
||||
t.string "phone"
|
||||
t.string "address"
|
||||
t.string "product_type"
|
||||
t.string "secrect_key"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "lookups", force: :cascade do |t|
|
||||
@@ -101,6 +100,16 @@ ActiveRecord::Schema.define(version: 20170203091136) do
|
||||
t.index ["user_id"], name: "index_members_on_user_id", using: :btree
|
||||
end
|
||||
|
||||
create_table "product_categories", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.integer "product_type_id"
|
||||
t.index ["product_type_id"], name: "index_product_categories_on_product_type_id", using: :btree
|
||||
end
|
||||
|
||||
create_table "product_types", force: :cascade do |t|
|
||||
t.string "name"
|
||||
end
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "nrc"
|
||||
|
||||
Reference in New Issue
Block a user