我已经用mysql(5.7.16)数据库创建了Rails(3.2)应用程序。我在某些表中使用了json列,并且工作正常。但是我可以在schema.rb文件中看到一些注释的代码,例如以下代码
# Could not dump table "shopping_cart_precheckout_details" because of following StandardError
# Unknown type 'json' for column 'special_info'
Run Code Online (Sandbox Code Playgroud)
移民
class CreateShoppingCartItemSpecialInfos < ActiveRecord::Migration
def change
create_table :shopping_cart_item_special_infos do |t|
t.integer :shopping_cart_checkout_option_id
t.column :special_info, :json
t.timestamps
end
end
end
Run Code Online (Sandbox Code Playgroud)
这会影响生产环境吗?为什么将此注释代码添加到schema.rb文件中?
我从themeforst购买了flatkit主题,但我不知道如何将购买的主题与rails 5应用程序集成?