Please enable JavaScript.
Coggle requires JavaScript to display documents.
Migration (Running Migration (database ($rails db:create : connect and…
-
Writing a Migration
-
-
t.remove :col_a, :col_b
t.rename :name_a, :name_b
t.change :col_name, :type, :modifier
t.change_default :col_name, default_value
change_column: change specific column definition with column name
add_column (table_name, column_name, type, options)
-
-
-
Running Migration
-
-
-
database
-
$rails db:setup : connect, create database, load the schema and initialize it with seed data
-
-
-