|
14 | 14 | ActiveRecord::Schema.define(version: 20180222225709) do
|
15 | 15 |
|
16 | 16 | create_table "active_admin_comments", force: :cascade do |t|
|
17 |
| - t.string "namespace", limit: 255 |
| 17 | + t.string "namespace" |
18 | 18 | t.text "body"
|
19 |
| - t.string "resource_id", limit: 255, null: false |
20 |
| - t.string "resource_type", limit: 255, null: false |
| 19 | + t.string "resource_id", null: false |
| 20 | + t.string "resource_type", null: false |
21 | 21 | t.integer "author_id"
|
22 |
| - t.string "author_type", limit: 255 |
| 22 | + t.string "author_type" |
23 | 23 | t.datetime "created_at"
|
24 | 24 | t.datetime "updated_at"
|
25 | 25 | end
|
|
29 | 29 | add_index "active_admin_comments", ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id"
|
30 | 30 |
|
31 | 31 | create_table "admin_users", force: :cascade do |t|
|
32 |
| - t.string "email", limit: 255, default: "", null: false |
33 |
| - t.string "encrypted_password", limit: 255, default: "", null: false |
34 |
| - t.string "reset_password_token", limit: 255 |
| 32 | + t.string "email", default: "", null: false |
| 33 | + t.string "encrypted_password", default: "", null: false |
| 34 | + t.string "reset_password_token" |
35 | 35 | t.datetime "reset_password_sent_at"
|
36 | 36 | t.datetime "remember_created_at"
|
37 |
| - t.integer "sign_in_count", default: 0, null: false |
| 37 | + t.integer "sign_in_count", default: 0, null: false |
38 | 38 | t.datetime "current_sign_in_at"
|
39 | 39 | t.datetime "last_sign_in_at"
|
40 |
| - t.string "current_sign_in_ip", limit: 255 |
41 |
| - t.string "last_sign_in_ip", limit: 255 |
| 40 | + t.string "current_sign_in_ip" |
| 41 | + t.string "last_sign_in_ip" |
42 | 42 | t.datetime "created_at"
|
43 | 43 | t.datetime "updated_at"
|
44 | 44 | end
|
|
47 | 47 | add_index "admin_users", ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true
|
48 | 48 |
|
49 | 49 | create_table "cars", force: :cascade do |t|
|
50 |
| - t.string "name", limit: 255 |
| 50 | + t.string "name" |
51 | 51 | t.integer "year"
|
52 | 52 | t.integer "manufacturer_id"
|
53 | 53 | end
|
54 | 54 |
|
55 | 55 | create_table "categories", force: :cascade do |t|
|
56 |
| - t.string "name", limit: 255 |
| 56 | + t.string "name" |
57 | 57 | t.text "description"
|
58 | 58 | t.datetime "created_at"
|
59 | 59 | t.datetime "updated_at"
|
60 | 60 | end
|
61 | 61 |
|
62 | 62 | create_table "cities", force: :cascade do |t|
|
63 |
| - t.string "name", limit: 255 |
| 63 | + t.string "name" |
64 | 64 | t.integer "region_id"
|
65 | 65 | t.datetime "created_at"
|
66 | 66 | t.datetime "updated_at"
|
|
70 | 70 | add_index "cities", ["region_id"], name: "index_cities_on_region_id"
|
71 | 71 |
|
72 | 72 | create_table "countries", force: :cascade do |t|
|
73 |
| - t.string "name", limit: 255 |
| 73 | + t.string "name" |
74 | 74 | t.datetime "created_at"
|
75 | 75 | t.datetime "updated_at"
|
76 | 76 | t.text "information"
|
77 | 77 | end
|
78 | 78 |
|
79 | 79 | create_table "invoices", force: :cascade do |t|
|
80 | 80 | t.datetime "legal_date"
|
81 |
| - t.string "number", limit: 255 |
| 81 | + t.string "number" |
82 | 82 | t.datetime "created_at"
|
83 | 83 | t.datetime "updated_at"
|
84 | 84 | t.boolean "paid"
|
85 |
| - t.string "state", limit: 255 |
| 85 | + t.string "state" |
86 | 86 | t.integer "status"
|
87 |
| - t.string "attachment_file_name", limit: 255 |
88 |
| - t.string "attachment_content_type", limit: 255 |
| 87 | + t.string "attachment_file_name" |
| 88 | + t.string "attachment_content_type" |
89 | 89 | t.integer "attachment_file_size"
|
90 | 90 | t.datetime "attachment_updated_at"
|
91 |
| - t.string "photo_file_name", limit: 255 |
92 |
| - t.string "photo_content_type", limit: 255 |
| 91 | + t.string "photo_file_name" |
| 92 | + t.string "photo_content_type" |
93 | 93 | t.integer "photo_file_size"
|
94 | 94 | t.datetime "photo_updated_at"
|
95 | 95 | t.integer "category_id"
|
96 | 96 | t.integer "city_id"
|
97 | 97 | t.integer "position"
|
98 |
| - t.string "color", limit: 255 |
| 98 | + t.string "color" |
99 | 99 | t.float "amount"
|
100 | 100 | t.integer "client_id"
|
101 |
| - t.string "aasm_state", limit: 255 |
102 |
| - t.boolean "active", default: true |
| 101 | + t.string "aasm_state" |
| 102 | + t.boolean "active", default: true |
103 | 103 | t.string "shipping_status"
|
104 | 104 | end
|
105 | 105 |
|
|
115 | 115 | add_index "invoices_items", ["item_id"], name: "index_invoices_items_on_item_id"
|
116 | 116 |
|
117 | 117 | create_table "items", force: :cascade do |t|
|
118 |
| - t.string "name", limit: 255 |
| 118 | + t.string "name" |
119 | 119 | t.text "description"
|
120 | 120 | t.datetime "created_at"
|
121 | 121 | t.datetime "updated_at"
|
122 | 122 | end
|
123 | 123 |
|
124 | 124 | create_table "manufacturers", force: :cascade do |t|
|
125 |
| - t.string "name", limit: 255 |
| 125 | + t.string "name" |
126 | 126 | end
|
127 | 127 |
|
128 | 128 | create_table "regions", force: :cascade do |t|
|
129 |
| - t.string "name", limit: 255 |
| 129 | + t.string "name" |
130 | 130 | t.integer "country_id"
|
131 | 131 | t.datetime "created_at"
|
132 | 132 | t.datetime "updated_at"
|
|
0 commit comments