snomof  id:snomof  



978    

-    

-    









.htaccess  (1)  

2ji  (4)  

37signals  (2)  

3D  (1)  

3dcg  (3)  

3ji  (1)  

500startups  (1)  

AMD  (1)  

AR(4)  

AWS  (24)  

Apple  (10)  

Apple Pay  (1)  

BDD  (2)  

Boost  (2)  

CDN  (1)  

CDP  (1)  

CI(2)  

CPU  (3)  

CSS3  (1)  

CakePHP  (6)  

Chromecast  (1)  

Cinnamon  (1)  

Cloud  (3)  

CocoaPods  (1)  

Computer Vision  (1)  

Coursera  (1)  

DataTables  (1)  

EC(4)  

ELPA  (1)  

Elisp  (5)  

Emacs  (39)  

English  (15)  

Facebook  (8)  

Fusion-io  (1)  

GC(1)  

Git  (37)  

Google  (17)  

Google Cloud Platform  (1)  

HE(1)  

HTML  (6)  

Heroku  (13)  

IE(2)  

Interview  (2)  

LINE  (4)  

LLVM  (1)  

LinkedIn  (1)  

MVC  (3)  

MVVM  (1)  

Mac  (13)  

Mac OS  (11)  

Mac OSX  (1)  

Netflix  (1)  

Novel  (1)  

OS(1)  

OSS  (2)  

OpenCV  (4)  

OpsWorks  (1)  

PHPUnit  (1)  

PPA  (1)  

PS4  (1)  

PSR  (2)  

PayPal  (2)  

PostgreSQL  (2)  

Pull Request  (2)  

RDB  (1)  

RDS  (1)  

RedShift  (3)  

Rubinius  (1)  

SF(2)  

SNS  (3)  

SONY  (1)  

SmartPhone  (2)  

TDD  (7)  

UI(13)  

UK(1)  

UX(4)  

Unix  (5)  

Usability  (1)  

Windows 8  (2)  

Xcode  (8)  

ab test  (1)  

abobe  (1)  

academic conference  (2)  

academic journal  (2)  

activerecord  (9)  

activesupport  (1)  

ad(1)  

address  (1)  

agile  (5)  

aif  (1)  

ajax  (1)  

akb  (1)  

algorithm  (2)  

amazon  (7)  

amazon product api  (1)  

ana  (1)  

analysis  (6)  

android  (24)  

anime  (5)  

apache  (2)  

api  (7)  

apm  (1)  

app  (12)  

apt-get  (1)  

aptitude  (1)  

arel  (1)  

article  (1)  

association  (1)  

asus  (1)  

audio  (1)  

aurora  (2)  

awesome  (1)  

awk  (1)  

aws lambda  (1)  

azure  (1)  

bash  (5)  

beartail  (2)  

beginner  (1)  

berkshelf  (1)  

bigdata  (2)  

bitcoin  (2)  

bitmapscan  (1)  

blog  (7)  

bluetooth  (1)  

book  (3)  

bootstrap  (1)  

bounce  (1)  

brand  (2)  

brew  (2)  

browser  (3)  

btt  (1)  

buffer  (1)  

bug  (1)  

bundler  (4)  

business  (9)  

bussiness  (3)  

c(1)  

c++  (6)  

cache  (3)  

caching  (2)  

calendar  (1)  

camera  (1)  

car  (1)  

cask  (1)  

cat  (1)  

centos  (2)  

chart  (1)  

chat  (1)  

chef  (5)  

chrome  (2)  

circle ci  (2)  

city  (1)  

class  (4)  

cloudera  (1)  

cm(1)  

cms  (1)  

code  (1)  

codereading  (2)  

codereview  (1)  

coding rule  (2)  

coding standard  (6)  

comic  (3)  

command  (21)  

commandline  (1)  

company  (3)  

compress  (1)  

conference  (1)  

config  (1)  

consistent hash  (1)  

console  (1)  

constant  (1)  

constitutional law  (1)  

container  (1)  

cookie  (1)  

cookpad  (6)  

copy  (1)  

coreos  (2)  

coupon  (1)  

cpr  (1)  

credit card  (1)  

cron  (1)  

crowdsourcing  (1)  

css  (13)  

csv  (1)  

cto  (4)  

cui  (1)  

curl  (1)  

cybozu  (1)  

d3  (1)  

d3js  (1)  

dalli  (1)  

database  (7)  

db(18)  

debian  (1)  

debug  (3)  

deep learning  (2)  

dena  (1)  

dentsu  (1)  

deploy  (1)  

design  (32)  

design pattern  (2)  

develop  (2)  

development  (63)  

devops  (3)  

dhh  (2)  

directory  (2)  

dlna  (2)  

dmm  (1)  

dns  (1)  

docker  (13)  

document  (1)  

domain  (1)  

dropbox  (1)  

drwallet  (5)  

e-learning  (1)  

economics  (3)  

editor  (4)  

education  (3)  

elasticbeanstalk  (2)  

elasticsearch  (4)  

email  (1)  

emr  (1)  

encoding  (3)  

engineer  (4)  

engineyard  (4)  

env  (2)  

erd  (1)  

ero  (1)  

error  (1)  

es6  (2)  

escapesequence  (1)  

euler  (1)  

event  (1)  

evernot  (2)  

evernote  (3)  

excel  (1)  

expensify  (1)  

extension  (1)  

faniture  (1)  

file mode  (2)  

filesystem  (3)  

flatdesign  (1)  

flexbox  (1)  

flickr  (1)  

flipboard  (1)  

fluentd  (5)  

font  (2)  

framework  (4)  

free photo  (1)  

fullcalendar  (1)  

fuller  (1)  

functor  (1)  

future  (2)  

game  (10)  

gcm  (2)  

gdb  (1)  

gem  (7)  

gentoo  (3)  

git-flow  (1)  

github  (20)  

github-flow  (1)  

github_pages  (1)  

gitignore  (1)  

gmo  (1)  

gnome  (1)  

gnome-shell  (1)  

go(1)  

google maps  (1)  

graph  (1)  

gree  (1)  

growth hack  (3)  

gt(1)  

gui  (1)  

gundam  (1)  

hack  (1)  

hadoop  (4)  

hci  (1)  

helm  (2)  

hhvm  (1)  

history  (1)  

hobby  (1)  

hololens  (1)  

home accounting  (1)  

home electronics  (1)  

homebrew  (3)  

host  (1)  

hosting  (1)  

howto  (1)  

html5  (3)  

http  (3)  

https  (1)  

hue  (1)  

hulu  (1)  

human computing  (2)  

human resource  (1)  

iBeacon  (1)  

iOS7  (1)  

iPad  (2)  

iPhone  (18)  

iTerm2  (2)  

iTunes  (3)  

ibm  (1)  

icon  (3)  

illust  (1)  

illustration  (1)  

image  (2)  

image processing  (1)  

incident  (1)  

index  (1)  

infrastracture  (6)  

infrastructure  (9)  

ingress  (1)  

innovation  (1)  

install  (2)  

intercom  (1)  

interface  (4)  

internet  (2)  

io(1)  

ios  (24)  

it(1)  

itc  (1)  

itfff  (1)  

jQuery  (6)  

java  (7)  

javascript  (19)  

jeditable  (1)  

jekyll  (1)  

jit  (2)  

jk(1)  

jmeter  (3)  

job  (1)  

js(20)  

json  (2)  

jwt  (1)  

kakasi  (1)  

kanban  (1)  

kankore  (2)  

kernel  (1)  

keybind  (1)  

keyboard  (3)  

kinesis  (1)  

kpi  (2)  

kpt  (1)  

laboratory  (2)  

lang-8  (1)  

language  (7)  

law  (2)  

less  (1)  

library  (1)  

lifehack  (1)  

lifehacker  (1)  

linebreak  (1)  

linux  (56)  

literature  (1)  

load  (1)  

localhost  (3)  

localstorage  (1)  

log  (6)  

lt(1)  

machine learning  (4)  

magit  (1)  

mail  (1)  

management  (7)  

manners  (1)  

markdown  (3)  

marketing  (8)  

mast  (1)  

material  (1)  

math  (2)  

maxim  (1)  

mecab  (1)  

mechanical turk  (1)  

media  (2)  

mediatomb  (2)  

memcached  (7)  

memory  (3)  

microservices  (2)  

microsoft  (4)  

miku  (2)  

mit  (2)  

mobile  (2)  

model  (2)  

monit  (2)  

monitoring  (2)  

music  (3)  

mutemath  (2)  

mysql  (12)  

neta  (48)  

network  (7)  

news  (10)  

node.js  (3)  

objective-c  (4)  

payment  (3)  

performance  (7)  

photo  (3)  

php  (27)  

plugin  (2)  

podcast  (2)  

portage  (2)  

postgres  (19)  

presentation  (2)  

programmer  (6)  

programming  (105)  

python  (9)  

rack  (2)  

radio  (2)  

rails  (70)  

rake  (3)  

raspberrypi  (2)  

rbenv  (5)  

reading  (2)  

rebase  (2)  

recruiting  (2)  

redis  (2)  

refactoring  (2)  

regex  (2)  

resque  (6)  

rest  (3)  

rspec  (8)  

ruby  (67)  

rvm  (3)  

scalability  (3)  

scrum  (2)  

security  (19)  

server  (21)  

shell  (12)  

silicon valley  (2)  

slideshare  (6)  

social game  (2)  

social media  (2)  

society  (2)  

software  (3)  

sort  (3)  

sql  (3)  

stackoverflow  (3)  

startup  (25)  

statistics  (2)  

storage  (2)  

study  (4)  

sumsung  (2)  

sync  (2)  

syntax  (2)  

tap  (2)  

team  (2)  

technology  (3)  

terminal  (5)  

test  (24)  

tips  (7)  

tool  (5)  

tsukuba  (3)  

tutorial  (3)  

twitter  (9)  

ubuntu  (11)  

unicode  (3)  

unicorn  (7)  

url  (3)  

usa  (2)  

vagrant  (2)  

video  (3)  

visualization  (2)  

vps  (2)  

web  (30)  

webservice  (51)  

website  (2)  

wikipedia  (2)  

windows  (7)  

wordpress  (2)  

work  (3)  

youtube  (7)  

zsh  (6)  

programming  (105)  

rails  (70)  

ruby  (67)  

development  (63)  

linux  (56)  

webservice  (51)  

neta  (48)  

Emacs  (39)  

Git  (37)  

design  (32)  


 


 (5)



DB

rails  

ruby  

sqlite  

test  


 




dbprogrammingsnomof (2)  






Defining foreign key relationships for Rails' models  



2 users  

stackoverflow.com  


 


I have a Comment class with a :foreign_key of post_id in the Post class. class Comment < ActiveRecord::Base belongs_to :post, :class_name => "Post", :foreign_key => "post_id", :counter_cache => true belongs_to :author, :class_name => "User", :foreign_key => "author_id" end But my CreateComments migration does not define a database-level foreign key: class CreateComments < ActiveRecord::Migration d
 Defining foreign key relationships for Rails' models


snomof
snomof  2012/10/27  


ruby

rails

DB

programming
 



 














SQLite45678000 67000  



473 users  

www.publickey1.jp  


 


SQLiteWebHow SQLite Is Tested3SQLite 3.6.236720067.2KSLOCKilo Source Lines of Code4567830045678.3KSLOC 679 100 SQLite3 TCL Tests TCL TestsTCL scripting lang
 SQLiteのテストコードは4567万8000行! 本体のコードは6万7000行


snomof
snomof  2012/10/14  


sqlite

programming

DB

test
 



 














1











202472

   



20242-20244

   



202471

   


 

Twitter



@HatenaBookmark


@hatebu

 









   




 



j

k

l

e

o
 

















 









 

















 









 









 







Pro



 




 






App Storeからダウンロード
Google Playで手に入れよう


Copyright © 2005-2024 Hatena. All Rights Reserved.
 



x