Skip to content

Commit a25d965

Browse files
committed
Exec: rails generate migration add_note_to_dojos note:string (w/ default + nil guard)
1 parent b13a170 commit a25d965

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddNoteToDojos < ActiveRecord::Migration[6.1]
2+
def change
3+
add_column :dojos, :note, :string, null: false, default: ""
4+
end
5+
end

0 commit comments

Comments
 (0)