30 Oct '13, 5am

I never used 'remove_reference/add_reference' to fix references. + (..., index: true)

Adds a new index to the table. column_name can be a single Symbol , or an Array of Symbols. The index will be named after the table and the column name(s), unless you pass :name as an option. Creating a simple index add_index(:suppliers, :name) generates: CREATE INDEX suppliers_name_index ON suppliers(name) Creating a unique index add_index(:accounts, [:branch_id, :party_id], unique: true) generates: CREATE UNIQUE INDEX accounts_branch_id_party_id_index ON accounts(branch_id, party_id) Creating a named index add_index(:accounts, [:branch_id, :party_id], unique: true, name: 'by_branch_party') generates: CREATE UNIQUE INDEX by_branch_party ON accounts(branch_id, party_id) Creating an index with specific key length add_index(:accounts, :name, name: 'by_name', length: 10) generates: CREATE INDEX by_name ON accounts(name(10)) add_index(:accounts, [:name, :surname], name: 'by_na...

Full article: http://api.rubyonrails.org/classes/ActiveRecord/Connectio...

Tweets

Pharrell Williams' Wedding Yacht: The 122-Foot Never Say Never

Pharrell Williams' Wedding Yacht: The 122-Foot ...

justluxe.com 31 Oct '13, 10pm

When music mogul Pharrell Williams and model/designer Helen Lasichanh got married in Miami earlier this month, it was of c...

Senators seek to fix ER reimbursement loophole ...

airforcetimes.com 31 Oct '13, 3pm

A loophole in veterans’ healthcare that is leaving some Iraq and Afghanistan veterans facing big medical bills for emergen...

Camp Schramsberg: A Champagne Lover's Dream Com...

justluxe.com 30 Oct '13, 7pm

Those of us who love to drink our bubbles — or as Dom Pérignon said, we "are drinking stars” — are not only happy, but thr...

I didn't realize that dumpster diving was such ...

eetimes.com 27 Oct '13, 2pm

I was raised in Zimbabwe, which used to be Rhodesia until 1980. Named after Cecil John Rhodes, who had the ambition to pai...

Google App Indexing: Google Can Index & Link To Content In Your Android App

Google App Indexing: Google Can Index & Link To...

searchengineland.com 31 Oct '13, 6pm

Google announced that they can now index the content within Android apps. The mechanism for doing so, they call, is app in...

Granola bars made of used beer grain reduce waste, actually sound kind of tasty

Granola bars made of used beer grain reduce was...

grist.org 30 Oct '13, 4pm

Up to 90 percent of beer ingredients are wasted (and not the good kind of “wasted”). So ReGrained is making some of that s...

#IT #Architect Frankenstein's Fix: The Dead Dri...

eetimes.com 25 Oct '13, 11pm

Now, even Aussies won't throw away a good drill very often, so I immediately assumed that the drill, the battery, or the c...

I've used this trick to deodorize my sneakers several times over the years

I've used this trick to deodorize my sneakers s...

bestof9gag.com 26 Oct '13, 10pm

I've used this trick to deodorize my sneakers several times over the years Tweet Epic fails and funny wins pictures on Qfa...

WOW: Solar is 99% Cheaper Than It Used To Be

WOW: Solar is 99% Cheaper Than It Used To Be

solarfeeds.com 28 Oct '13, 2am

With PV prices so low, the majority of the cost of going solar is now non-hardware costs such as financing, installation, ...

Accelerometers in smartphones can be used to identify users:.

Accelerometers in smartphones can be used to id...

electronicproducts.com 26 Oct '13, 1pm

Accelerometers in phones can be used to track and 'tag' specific users A smartphone’s accelerometers the bit that change...

Facebook on Graph Search Posts Index: 700 TB of Data & 100+ Ranking Factors

Facebook on Graph Search Posts Index: 700 TB of...

searchenginewatch.com 25 Oct '13, 3pm

What does it take to power a social search index with over a trillion total posts and hundreds of terabytes of data? Faceb...