activerecord - How to turn off auto_increment in Rails Active Record -


क्या ActiveRecord में auto_increment फ्लैग के बिना प्राथमिक कुंजी बनाना संभव है ?

मैं नहीं कर सकता

<पूर्व> तालिका बनाएं: blah,: id = & gt; गलत

क्योंकि मुझे कॉलम पर प्राथमिक कुंजी इंडेक्स होना है। मैंने देखा लेकिन उपयोगी कुछ भी नहीं मिला।

क्या स्वत: आयतन के बिना प्राथमिक कुंजी बनाना संभव है?

इसे आज़माएं?

  create_table (: table_name,: id = & gt; गलत) do | t | T.integer: id,: options = & gt; 'प्राथमिक कुंजी' अंत  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -