Tag: c9.io

如何使用Rails 5 Migration在MySQL中添加JSON列

我正在尝试通过运行在MySQL数据库中添加一个json列: class AddStatisticsToPlayerStatistic < ActiveRecord::Migration[5.0] def change add_column :player_statistics, :statistics, :json end end 但是当我尝试运行rake db:migrate时,我收到此错误 Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘json’ at line 1: ALTER TABLE `player_statistics` ADD `statistics` json 有谁知道如何在MySQL Ver 14.14 Distrib […]

Cloud9 + rails + Postgresql用法

我无法使用Postgresql在Cloud9(c9.io)上进行开发来设置Rails应用程序:迁移不成功。 常见错误: ~/workspace (master) $ rake db:migrate rake aborted! PG::ConnectionBad: could not connect to server: Connection refused Is the server running on host “0.0.0.0” and accepting TCP/IP connections on port 5432?

会话未创建例外:使用Selenium Webdriver和Chrome时,Chrome版本必须> = xyz

让我觉得这很棘手的一些注意事项是我正在使用c9.io (在云端开发),所以我使用gem webdrivers来运行带有Watir的 Chrome ,而不是创建一个安装在我的设备上的Chrome的可执行路径。 我的代码一直工作,直到我今天登录并收到错误 session not created exception: Chrome version must be >= 64.0.3282.0 (Driver info: chromedriver=2.37.543610 (afd36256570660b5a2f0e4dbd1b040f3dcfe9cb5),platform=Linux 4.9.80-c9 x86_64) gemfile的相关部分(其他一切都是库存) gem ‘webdrivers’ gem ‘watir’ 代码我正在尝试编译 def mastersave require ‘watir’ @browser = Watir::Browser.new :chrome, headless: true end 我并不是坚持使用Chrome的想法,但这对我有用。 gem’webdrivers’也允许我使用firefox,但是我得到了错误’权限被拒绝’。