Terminal Command Mac Alter table SQLite3
-
08-07-2019 - |
Question
What is the terminal command, or where is a good resource to get them, to alter a table. And, do I need to re run the $rake db:migrate after I do this? I am running RoR on Snow Leopard. Last question, can I make an already created column non-null.
UPDATE: figured out how to alter, just need to know if I need to rake db:migrate after alter.
Solution
good resource to get them, to alter a table
Check these to get a grasp at how migrations work
@run rake db:migrate
: yes
@created to non-null: yes (Check 7.1 add_column
and 7.2 change_column
in the first link
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow