|
13 | 13 |
|
14 | 14 | ActiveRecord::Schema.define(version: 20150620054216) do |
15 | 15 |
|
16 | | - create_table "collaborators", force: true do |t| |
| 16 | + create_table "collaborators", force: :cascade do |t| |
17 | 17 | t.integer "project_id" |
18 | 18 | t.string "login" |
19 | 19 | t.datetime "created_at" |
|
22 | 22 |
|
23 | 23 | add_index "collaborators", ["project_id"], name: "index_collaborators_on_project_id" |
24 | 24 |
|
25 | | - create_table "deposits", force: true do |t| |
| 25 | + create_table "deposits", force: :cascade do |t| |
26 | 26 | t.integer "project_id" |
27 | | - t.string "txid" |
| 27 | + t.string "txid", limit: 255 |
28 | 28 | t.integer "confirmations" |
29 | 29 | t.datetime "created_at" |
30 | 30 | t.datetime "updated_at" |
|
34 | 34 |
|
35 | 35 | add_index "deposits", ["project_id"], name: "index_deposits_on_project_id" |
36 | 36 |
|
37 | | - create_table "projects", force: true do |t| |
38 | | - t.string "url" |
39 | | - t.string "bitcoin_address" |
| 37 | + create_table "projects", force: :cascade do |t| |
| 38 | + t.string "url", limit: 255 |
| 39 | + t.string "bitcoin_address", limit: 255 |
40 | 40 | t.datetime "created_at" |
41 | 41 | t.datetime "updated_at" |
42 | | - t.string "name" |
43 | | - t.string "full_name" |
44 | | - t.string "source_full_name" |
| 42 | + t.string "name", limit: 255 |
| 43 | + t.string "full_name", limit: 255 |
| 44 | + t.string "source_full_name", limit: 255 |
45 | 45 | t.text "description" |
46 | 46 | t.integer "watchers_count" |
47 | | - t.string "language" |
48 | | - t.string "last_commit" |
| 47 | + t.string "language", limit: 255 |
| 48 | + t.string "last_commit", limit: 255 |
49 | 49 | t.integer "available_amount_cache" |
50 | | - t.string "github_id" |
51 | | - t.string "host", default: "github" |
52 | | - t.boolean "hold_tips", default: false |
| 50 | + t.string "github_id", limit: 255 |
| 51 | + t.string "host", default: "github" |
| 52 | + t.boolean "hold_tips", default: false |
53 | 53 | t.datetime "info_updated_at" |
54 | 54 | t.string "branch" |
55 | 55 | t.boolean "disable_notifications" |
|
60 | 60 | add_index "projects", ["full_name"], name: "index_projects_on_full_name", unique: true |
61 | 61 | add_index "projects", ["github_id"], name: "index_projects_on_github_id", unique: true |
62 | 62 |
|
63 | | - create_table "sendmanies", force: true do |t| |
64 | | - t.string "txid" |
| 63 | + create_table "sendmanies", force: :cascade do |t| |
| 64 | + t.string "txid", limit: 255 |
65 | 65 | t.text "data" |
66 | | - t.string "result" |
| 66 | + t.string "result", limit: 255 |
67 | 67 | t.boolean "is_error" |
68 | 68 | t.datetime "created_at" |
69 | 69 | t.datetime "updated_at" |
70 | 70 | end |
71 | 71 |
|
72 | | - create_table "tipping_policies_texts", force: true do |t| |
| 72 | + create_table "tipping_policies_texts", force: :cascade do |t| |
73 | 73 | t.integer "project_id" |
74 | 74 | t.integer "user_id" |
75 | 75 | t.text "text" |
|
80 | 80 | add_index "tipping_policies_texts", ["project_id"], name: "index_tipping_policies_texts_on_project_id" |
81 | 81 | add_index "tipping_policies_texts", ["user_id"], name: "index_tipping_policies_texts_on_user_id" |
82 | 82 |
|
83 | | - create_table "tips", force: true do |t| |
| 83 | + create_table "tips", force: :cascade do |t| |
84 | 84 | t.integer "user_id" |
85 | 85 | t.integer "amount", limit: 8 |
86 | 86 | t.integer "sendmany_id" |
87 | 87 | t.datetime "created_at" |
88 | 88 | t.datetime "updated_at" |
89 | | - t.string "commit" |
| 89 | + t.string "commit", limit: 255 |
90 | 90 | t.integer "project_id" |
91 | 91 | t.datetime "refunded_at" |
92 | 92 | t.text "commit_message" |
|
97 | 97 | add_index "tips", ["sendmany_id"], name: "index_tips_on_sendmany_id" |
98 | 98 | add_index "tips", ["user_id"], name: "index_tips_on_user_id" |
99 | 99 |
|
100 | | - create_table "users", force: true do |t| |
101 | | - t.string "email", default: "", null: false |
102 | | - t.string "encrypted_password", default: "", null: false |
103 | | - t.string "reset_password_token" |
| 100 | + create_table "users", force: :cascade do |t| |
| 101 | + t.string "email", limit: 255, default: "", null: false |
| 102 | + t.string "encrypted_password", limit: 255, default: "", null: false |
| 103 | + t.string "reset_password_token", limit: 255 |
104 | 104 | t.datetime "reset_password_sent_at" |
105 | 105 | t.datetime "remember_created_at" |
106 | | - t.integer "sign_in_count", default: 0, null: false |
| 106 | + t.integer "sign_in_count", default: 0, null: false |
107 | 107 | t.datetime "current_sign_in_at" |
108 | 108 | t.datetime "last_sign_in_at" |
109 | | - t.string "current_sign_in_ip" |
110 | | - t.string "last_sign_in_ip" |
| 109 | + t.string "current_sign_in_ip", limit: 255 |
| 110 | + t.string "last_sign_in_ip", limit: 255 |
111 | 111 | t.datetime "created_at" |
112 | 112 | t.datetime "updated_at" |
113 | | - t.string "nickname" |
114 | | - t.string "name" |
115 | | - t.string "image" |
116 | | - t.string "bitcoin_address" |
117 | | - t.string "login_token" |
| 113 | + t.string "nickname", limit: 255 |
| 114 | + t.string "name", limit: 255 |
| 115 | + t.string "image", limit: 255 |
| 116 | + t.string "bitcoin_address", limit: 255 |
| 117 | + t.string "login_token", limit: 255 |
118 | 118 | t.boolean "unsubscribed" |
119 | 119 | t.datetime "notified_at" |
120 | | - t.integer "commits_count", default: 0 |
121 | | - t.integer "withdrawn_amount", limit: 8, default: 0 |
| 120 | + t.integer "commits_count", default: 0 |
| 121 | + t.integer "withdrawn_amount", limit: 8, default: 0 |
122 | 122 | t.datetime "confirmed_at" |
123 | 123 | t.datetime "confirmation_sent_at" |
124 | 124 | t.string "confirmation_token" |
125 | 125 | t.string "unconfirmed_email" |
126 | 126 | t.string "display_name" |
127 | | - t.integer "denom", default: 0 |
| 127 | + t.integer "denom", default: 0 |
128 | 128 | end |
129 | 129 |
|
130 | 130 | add_index "users", ["email"], name: "index_users_on_email", unique: true |
|
0 commit comments