मैं अपनी स्कीमा में एक टेबल को हटाना चाहता हूं। मैंने डेटाबेस बनाया जब मैंने पहली बार प्रोजेक्ट शुरू किया और तालिका को हटाना चाहता था। ऐसा करने का सबसे अच्छा तरीका क्या है?स्कीमा से तालिका हटाना - रेल
मैंने rails g migration drop table :installs
की कोशिश की लेकिन यह सिर्फ खाली माइग्रेशन बनाता है?
स्कीमा:
create_table "installs", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.integer "sign_in_count", default: 0, null: false
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
add_index "installs", ["email"], name: "index_installs_on_email", unique: true
add_index "installs", ["reset_password_token"], name: "index_installs_on_reset_password_token", unique: true
संभावित रेल डुप्लिकेट [रेल डीबी माइग्रेशन - टेबल कैसे छोड़ें?] (Http://stackoverflow.com/questions/4020131/rails-db- माइग्रेशन-how-to-drop-a-table) –
मैं ' डी कहते हैं कि यह काफी डुप्लिकेट नहीं है कि यह स्कीमा के बारे में एक सवाल है (भले ही वह संपादित नहीं किया जाना चाहिए)। – jonlink