List out what can Rails Migration do?
List out what can Rails Migration do?
Rails migrations allow you to evolve your database schema over time using Ruby code instead of writing raw SQL. Here are some key things that Rails migrations can do:
create_table :products do |t|
t.string :name
t.string :part_number
t.timestamps
end
add_column :products, :description, :text
remove_column :products, :part_number
Can you explain the difference between ActiveSupport’s HashWithIndifferentAccess and Ruby’s Hash ?
Xem chi tiếtDoes Ruby Support Single Inheritance/Multiple Inheritance Or Both?
Xem chi tiếtExplain how you define Instance Variable, Global Variable and Class Variable in Ruby?
Xem chi tiếtĐăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.