टेबल रेल में कॉलम कैसे जोड़ें

कोड उदाहरण

6
0

टेबल रेल में कॉलम कैसे जोड़ें


rails g migration add_description_to_users description:string
#'g' means generate, the 'add' in 'add_description_to_users' tells
#Rails you want to add a column, the 'description' is the new column name,
#and the 'users' is the table you want to add it to, must be plural. 
#After you've checked your migration to make sure its what you want...
rails db:migrate

इसी तरह के पन्ने

उदाहरणों के साथ समान पृष्ठ

अन्य भाषाओं में

यह पृष्ठ अन्य भाषाओं में है

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................

इस श्रेणी में लोकप्रिय

श्रेणी में उदाहरण के साथ लोकप्रिय पृष्ठों