訳ãã£ã¦ãRuby on Railsã§MySQLã«ç»åãæ ¼ç´ã使ãå®é¨ãããã migrationã§ã®æå® ç»åãæ ¼ç´ããã«ã©ã 㯠migration ã§ã¯ binary ãæå®ãã¾ãããã ãããã®ã¾ã¾ã§ã¯ 64Kbyteã¾ã§ããæ ¼ç´åºæ¥ãªã blobåã«ãªã£ã¦ãã¾ãã¾ããããã mediumblobåã«ããã«ã¯ã migrationãã¡ã¤ã«ã§ :limit => (16*1024*1024 - 1) ãæå®ãã¾ãã def self.up create_table :table_name do |t| t.binary :column_name, :limit => (16*1024*1024 - 1) t.timestamps end endããããæ¤ç´¢ããã¨ãmediumblobæå®ã®çºã« execute ã§MySQLã®SQLæãæ¸ããããªè¨äºãè¦ã¤ããã¾ããããããªé¢åã¯ããã¾ãã
{{#tags}}- {{label}}
{{/tags}}