Rails Generate Migration Array Default Value

[Solved] Rails Generate Migration Array Default Value | Ruby - Code Explorer | yomemimo.com
Question : rails generate migration array default value

Answered by : lior

add_column :products, :tags, :string, array: true, default: []

Source : | Last Update : Thu, 03 Jun 21

Answers related to rails generate migration array default value

Code Explorer Popular Question For Ruby