mercredi 2 mars 2016

Rails - How to query using the string

I want to show the list of builds as follows

AppName     bundle
ABCD        test_1.3.5.0_AdHoc_69bd343d_v3.5_Omniture.ipa
ABCD        test_1.3.5.0_Store_69bd343d_v3.5_Omniture.ipa
DAA         test_1.3.4.0_AdHoc_69bd343d_v3.5_Omniture.ipa
DAA         test_1.3.4.0_Store_69bd343d_v3.5_Omniture.ipa

Builds table

id:integer appname:string bundle:string created_at:datetime

Build table data

+-----+--------------+----------------------------------------------------------------------------------+
| id  | app_name | bundle                                                                           |
+-----+--------------+----------------------------------------------------------------------------------+
|  36 |          ABCD | test_1.3.5.0_AdHoc_69bd343d_v3.5_Omniture.ipa                         |
|  37 |          DAA | test_AdHoc_69bd343d_v3.5_iture.ipa                            |
|  38 |          ABCD | test_1.3.5.0_Store_69bd343d_v3.5_mniture.ipa                         |
|  39 |          DAA | test_1.3.5.0_Store_69bd343d_v3.5_Omniture.ipa                         |

How should i achieve this ? Any idea ?

Aucun commentaire:

Enregistrer un commentaire