Upload
techscore
View
715
Download
2
Embed Size (px)
Citation preview
RailsDBMySQLPostgreSQL
2015/04/17Riding Rails(Rails)
https://github.com/mitoma
on RDBMS
RailsDB
RailsMySQLPostgreSQL
Rails
(Salesforce) (Amazon Web Service)
RailsDB
RailsDB
DB1
DB
DB
MySQLPostgreSQL
RailsDB
MySQLPostgreSQL
DDL, DMLPostgreSQL
DDL, DMLPostgreSQL
PgSanity
MySQL PostgreSQL tinyint(1) boolean true/false
varchar citext
auto_increment serial setvalDDL
blob bytea line.gsub!(/0x([0-9,A-F]+)/, "decode('\\1','hex')")
MySQLPostgreSQL
MySQLPostgreSQL
grep
ActiveRecordMD5
attributeMD5
diActiveRecord
MySQLPostgreSQL
MySQLPostgreSQL
case insensitive order bynull group by Etc
PostgreSQL citext
MySQLPostgreSQL
MySQLPostgreSQL
ifActiveRecord
RailsDB
PostgreSQLDBDB
DBDB
5
RailsDB
RDBMS
OR Mapper
1~1000
http://www.techscore.com/blog/2014/12/05/rails_db_migration/