ruby - rails pg db migration undefined method `database_authenticatable' for Devise Users -


अपरिवर्तित विधि डेटाबेस # प्रमाणिकृत 'के लिए # & lt; ActiveRecord :: ConnectionAdapters :: PostgreSQLAdapter :: TableDefinition: 0xd715388 & gt;

माइग्रेशन है:

  वर्ग DeviseCreateUsers & lt; ActiveRecord :: माइग्रेशन डीएफ़ self.up create_table (): | टी | T.database_authenticatable: null = & gt; गलत t.recoverable t.rememberable t.trackable t.timestamps अंत add_index: उपयोगकर्ता,: ईमेल,: अद्वितीय = & gt; सच add_index: उपयोगकर्ता,: reset_password_token,: unique = & gt; सच अंत डीईएफ self.down drop_table: प्रयोक्ता एंड एंड    

अगर मैं गलत नहीं हूँ , Devise ने इसे उत्पन्न माइग्रेशन शैली बदल दिया

  create_table (उपयोगकर्ता) do | t | T.database_authenticatable end   

से

  create_table (उपयोगकर्ता) do | t | ## डेटाबेस प्रामाणिक योग्य t.string: ईमेल,: null = & gt; गलत, डिफ़ॉल्ट = & gt; "" टी। स्ट्रिंग: एन्क्रिप्टेड_पासवर्ड,: नाल = & gt; गलत, डिफ़ॉल्ट = & gt; संस्करण 2.0 के बाद "  

अद्यतन करें: इसे देखें।

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -