8
अगर मैं ऑन रेल्स उत्पादन में ar_internal_metadata
बनाने के लिए एक माइग्रेशन बनाने की जरूरत मैं सोच रहा हूँ 5क्या उत्पादन में बनाई गई ar_internal_metadata तालिका है?
अगर मैं ऑन रेल्स उत्पादन में ar_internal_metadata
बनाने के लिए एक माइग्रेशन बनाने की जरूरत मैं सोच रहा हूँ 5क्या उत्पादन में बनाई गई ar_internal_metadata तालिका है?
यह मूल रूप से एक सुरक्षा स्विच है, उलझी और बदलते कैसे रेल क्षुधा तैनात किया गया है की कीमत पर:
Rails 5 has added a new table ar_internal_metadata to store environment version which is used at the time of migrating the database. When the first time rake db:migrate is executed then new table stores the value production. Now whenever we load database schema or database structure by running rake db:schema:load or rake db:structure:load Rails will check if Rails environment is “production” or not. If not then Rails will raise an exception and thus preventing the data wipeout.
http://blog.bigbinary.com/2016/06/07/rails-5-prevents-destructive-action-on-production-db.html
कि पेज देखा, उस वाक्य याद किया ... हालांकि मुझे समझ नहीं आता क्यों यह जानकारी रेल 5 रिहाई docum में एक ब्लॉग पोस्ट पर है और नहीं प्रलेखन। – maschwenk